projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f366011
)
Eliminate unnecessary variable
author
Panu Matilainen
<pmatilai@redhat.com>
Wed, 16 Jul 2008 07:24:05 +0000
(10:24 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 16 Jul 2008 07:24:05 +0000
(10:24 +0300)
- leftover from static buffer times..
rpmio/macro.c
patch
|
blob
|
history
diff --git
a/rpmio/macro.c
b/rpmio/macro.c
index
cc0638a
..
881f897
100644
(file)
--- 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