]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Make sure we don't try to output a NULL pointer in a verbose message.
authorWayne Davison <wayned@samba.org>
Wed, 23 May 2007 00:48:27 +0000 (00:48 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 23 May 2007 00:48:27 +0000 (00:48 +0000)
generator.c

index f9620e9ae5170dfeebad7ec7ee7b279cdd1df37f..f1b6a46c54d6220ee7c327a0c29366cdcd49f88d 100644 (file)
@@ -1736,8 +1736,9 @@ static void touch_up_dirs(struct file_list *flist, int ndx)
        for (i = start; i <= end; i++, counter++) {
                file = flist->files[i];
                if (verbose > 3) {
+                       fname = f_name(file, NULL);
                        rprintf(FINFO, "touch_up_dirs: %s (%d)\n",
-                               f_name(file, NULL), i);
+                               NS(fname), i);
                }
                if (!F_IS_ACTIVE(file) || !S_ISDIR(file->mode)
                 || file->flags & FLAG_MISSING_DIR)