]> Dogcows Code - chaz/tar/blobdiff - src/incremen.c
tar: do not crash with --listed-incremental
[chaz/tar] / src / incremen.c
index c6d4f4c5849a2ecdb5e9633a36e718c95e195f93..4d86ed791c88d57b40e4a7fe705f4d711eb85b1a 100644 (file)
@@ -890,7 +890,8 @@ append_incremental_renames (struct directory *dir)
   for (dp = dirhead; dp; dp = dp->next)
     store_rename (dp, &stk);
 
-  if (obstack_object_size (&stk) != size)
+  /* FIXME: Is this the right thing to do when DIR is null?  */
+  if (dir && obstack_object_size (&stk) != size)
     {
       obstack_1grow (&stk, 0);
       dumpdir_free (dir->dump);
This page took 0.023282 seconds and 4 git commands to generate.