From: Panu Matilainen Date: Wed, 16 Jul 2008 07:24:05 +0000 (+0300) Subject: Eliminate unnecessary variable X-Git-Tag: tznext/4.11.0.1.tizen20130304~3689 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b19676027fd19369f49629945debcefeeae48df;p=tools%2Flibrpm-tizen.git Eliminate unnecessary variable - leftover from static buffer times.. --- diff --git a/rpmio/macro.c b/rpmio/macro.c index cc0638a..881f897 100644 --- a/rpmio/macro.c +++ b/rpmio/macro.c @@ -1574,7 +1574,7 @@ rpmExpand(const char *arg, ...) { size_t blen = MACROBUFSIZ; char *buf = NULL; - char *p, *pe, *res; + char *p, *pe; const char *s; va_list ap; @@ -1595,8 +1595,7 @@ rpmExpand(const char *arg, ...) (void) expandMacros(NULL, NULL, buf, blen); exit: - res = buf; - return res; + return buf; } int