From: Marco van Wieringen Date: Tue, 17 Aug 2010 17:00:38 +0000 (+0200) Subject: Tweak readdir return code check saves a compiler warning. X-Git-Tag: Release-5.2.1~1132 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dc1b6d374f257840aec9b3c1d74a6150583c7e03;p=bacula%2Fbacula Tweak readdir return code check saves a compiler warning. --- diff --git a/bacula/src/filed/xattr.c b/bacula/src/filed/xattr.c index c0ed4dcc3b..2c4fa7ca18 100644 --- a/bacula/src/filed/xattr.c +++ b/bacula/src/filed/xattr.c @@ -1815,7 +1815,7 @@ static bxattr_exit_code solaris_save_xattrs(JCR *jcr, const char *xattr_namespac /* * Walk the namespace. */ - while (dp = readdir(dirp)) { + while ((dp = readdir(dirp)) != NULL) { /* * Skip only the toplevel . dir. */