From 7bfa94ad13ec06d60868e675e9009633fe75ec46 Mon Sep 17 00:00:00 2001 From: Marc Thomas Date: Mon, 26 Jun 2017 16:39:47 +0100 Subject: [PATCH] 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 --- misc/filefrag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/filefrag.c b/misc/filefrag.c index 1a18512..9c57ab9 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) -- 1.8.3.1