From: Magnus Jacobsson Date: Sun, 20 Sep 2020 20:55:49 +0000 (+0200) Subject: Fix smyrna -? to actually print usage instead of error X-Git-Tag: 2.46.0~20^2^2~55^2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c6420be0dfc252b7db4207accf40af2170c50e8;p=graphviz Fix smyrna -? to actually print usage instead of error --- diff --git a/cmd/smyrna/main.c b/cmd/smyrna/main.c index b742c370e..4412f9005 100644 --- a/cmd/smyrna/main.c +++ b/cmd/smyrna/main.c @@ -134,7 +134,7 @@ static char *parseArgs(int argc, char *argv[], ViewInfo * view) exit (0); break; case '?': - if (optopt == '?') + if (optopt == '\0') usage(0); else fprintf(stderr,