s3:utils: If share is NULL in smbcquotas, don't print it
authorAndreas Schneider <asn@samba.org>
Wed, 8 May 2019 15:11:13 +0000 (17:11 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 8 May 2019 16:33:24 +0000 (16:33 +0000)
Found by GCC 9.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/utils/smbcquotas.c

index 3f2fc7b37a1facac99522e083d38ea3cef70e2d1..17d16b1cba5d832dcae1346490942263a4aacfae 100644 (file)
@@ -770,8 +770,8 @@ int main(int argc, char *argv[])
                exit(EXIT_PARSE_ERROR);
        }
        share = strchr_m(server,'\\');
-       if (!share) {
-               printf("Invalid argument: %s\n", share);
+       if (share == NULL) {
+               printf("Invalid argument\n");
                exit(EXIT_PARSE_ERROR);
        }