diff options
author | Karel Zak | 2013-03-27 14:38:07 +0100 |
---|---|---|
committer | Karel Zak | 2013-03-27 14:38:07 +0100 |
commit | 31bfda07a4d00ff1b011aff3ad84112adfc0250f (patch) | |
tree | f9dc2c537b05a923bc6b60bdecd8a557b6606d57 /misc-utils | |
parent | su: make code more robust [coverity scan] (diff) | |
download | kernel-qcow2-util-linux-31bfda07a4d00ff1b011aff3ad84112adfc0250f.tar.gz kernel-qcow2-util-linux-31bfda07a4d00ff1b011aff3ad84112adfc0250f.tar.xz kernel-qcow2-util-linux-31bfda07a4d00ff1b011aff3ad84112adfc0250f.zip |
getopt: fix normalize() usage [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils')
-rw-r--r-- | misc-utils/getopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/getopt.c b/misc-utils/getopt.c index a59780042..55a331f44 100644 --- a/misc-utils/getopt.c +++ b/misc-utils/getopt.c @@ -190,7 +190,7 @@ static int generate_output(char *argv[], int argc, const char *optstr, if (longopts[longindex].has_arg) printf(" %s", normalize(optarg ? optarg : "")); } else if (opt == NON_OPT) - printf(" %s", normalize(optarg)); + printf(" %s", normalize(optarg ? optarg : "")); else { printf(" -%c", opt); charptr = strchr(optstr, opt); |