]> granicus.if.org Git - graphviz/commitdiff
Fix bug with -o flag
authorerg <devnull@localhost>
Tue, 14 Dec 2010 20:24:41 +0000 (20:24 +0000)
committererg <devnull@localhost>
Tue, 14 Dec 2010 20:24:41 +0000 (20:24 +0000)
lib/gvpr/gvpr.c

index e588183a3de5145316fce206099f7e05b0946dc0..a9219bb68eee5987bfdeca745a892ca56f5350a4 100644 (file)
@@ -314,7 +314,7 @@ doFlags(char* arg, int argi, int argc, char** argv, options* opts)
            else return -1;
            break;
        case 'o':
-           if (!(optarg = getOptarg(c, &arg, &argi, argc, argv)) && !(opts->outFile = openOut(optarg)))
+           if (!(optarg = getOptarg(c, &arg, &argi, argc, argv)) || !(opts->outFile = openOut(optarg)))
                return -1;
            break;
        case 'q':