From: Sergey Poznyakoff Date: Tue, 6 Jun 2006 21:33:25 +0000 (+0000) Subject: (transform_name_fp): Run fun even if _transform_name_to_obstack returns false. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=435edb824e6d6271ed6b2d5c9f0e5b81f989a8f6;p=chaz%2Ftar (transform_name_fp): Run fun even if _transform_name_to_obstack returns false. --- diff --git a/src/transform.c b/src/transform.c index c5eafc3..acdf552 100644 --- a/src/transform.c +++ b/src/transform.c @@ -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; }