From: Marc Thomas Date: Mon, 26 Jun 2017 15:39:47 +0000 (+0100) Subject: filefrag: fix GCC7.x compiler warning X-Git-Tag: v1.43.5~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bfa94ad13ec06d60868e675e9009633fe75ec46;p=thirdparty%2Fe2fsprogs.git filefrag: fix GCC7.x compiler warning ../../misc/filefrag.c:591:33: warning: comparison between pointer and zero character constant [-Wpointer-compare] for (cpp = argv + optind; *cpp != '\0'; cpp++) { Signed-off-by: Marc Thomas Signed-off-by: Theodore Ts'o --- diff --git a/misc/filefrag.c b/misc/filefrag.c index 1a1851245..9c57ab930 100644 --- a/misc/filefrag.c +++ b/misc/filefrag.c @@ -588,7 +588,7 @@ int main(int argc, char**argv) if (optind == argc) usage(argv[0]); - for (cpp = argv + optind; *cpp != '\0'; cpp++) { + for (cpp = argv + optind; *cpp != NULL; cpp++) { int rc2 = frag_report(*cpp); if (rc2 < 0 && rc == 0)