]> Dogcows Code - chaz/tar/commitdiff
(transform_name_fp): Run fun even if _transform_name_to_obstack returns false.
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 6 Jun 2006 21:33:25 +0000 (21:33 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 6 Jun 2006 21:33:25 +0000 (21:33 +0000)
src/transform.c

index c5eafc347e8260352fd3ed1274a5b9cc687a0425..acdf552cf3b88d9237152e5004a305faf3b20122 100644 (file)
@@ -350,6 +350,14 @@ transform_name_fp (char **pinput, char *(*fun)(char *))
        assign_string (pinput, fun ? fun (str) : str);
        obstack_free (&stk, str);
       }
+    else if (fun)
+      {
+       str = *pinput;
+       *pinput = NULL;
+       assign_string (pinput, fun (str));
+       free (str);
+       ret = true;
+      }
     return ret;
 }
 
This page took 0.022136 seconds and 4 git commands to generate.