]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak readdir return code check saves a compiler warning.
authorMarco van Wieringen <mvw@planets.elm.net>
Tue, 17 Aug 2010 17:00:38 +0000 (19:00 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 7 Sep 2010 19:05:35 +0000 (21:05 +0200)
bacula/src/filed/xattr.c

index c0ed4dcc3bc3cfc11fcf4d8385b9fe74dbfd6973..2c4fa7ca18f40e3ef6a734d56125400534167308 100644 (file)
@@ -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.
        */