]> granicus.if.org Git - strace/blobdiff - strace.c
2003-06-02 Roland McGrath <roland@redhat.com>
[strace] / strace.c
index 41194b7f33a1dc08a1d558409c379621a5456bf5..368eb860d48ed4f6c49a8f2c246d391d8454b78f 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -368,13 +368,12 @@ char *argv[];
 #endif
 
        if (!outfname) {
-               qflag = 1;
                setvbuf(outf, buf, _IOLBF, BUFSIZ);
        }
-       else if (optind < argc)
+       else if (optind < argc) {
                interactive = 0;
-       else
                qflag = 1;
+       }
 
        for (c = 0; c < tcbtabsize; c++) {
                tcp = tcbtab[c];