summaryrefslogtreecommitdiff
path: root/rpmdb
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-04-09 11:17:43 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-04-09 11:18:57 +0300
commite7ed105c6723d7820ffd9fa917de1fdac47590a0 (patch)
treee9bdbdd82b294b27e5380e8cd48ec2f3185cb833 /rpmdb
parent994ccffd9dee5d25da4fe4be1fa4d4b9baeea990 (diff)
downloadlibrpm-tizen-e7ed105c6723d7820ffd9fa917de1fdac47590a0.tar.gz
librpm-tizen-e7ed105c6723d7820ffd9fa917de1fdac47590a0.tar.bz2
librpm-tizen-e7ed105c6723d7820ffd9fa917de1fdac47590a0.zip
Initialize pointers, lowercase local variable
Diffstat (limited to 'rpmdb')
-rw-r--r--rpmdb/hdrNVR.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpmdb/hdrNVR.c b/rpmdb/hdrNVR.c
index a7f36a301..37bc11bea 100644
--- a/rpmdb/hdrNVR.c
+++ b/rpmdb/hdrNVR.c
@@ -90,18 +90,18 @@ char * headerGetNEVRA(Header h, const char ** np)
char * headerGetEVR(Header h, const char ** np)
{
const char *n, *v, *r;
- char *EVR;
+ char *evr = NULL;
int32_t *e;
(void) headerNEVRA(h, &n, &e, &v, &r, NULL);
if (e) {
- rasprintf(&EVR, "%d:%s-%s", *e, v, r);
+ rasprintf(&evr, "%d:%s-%s", *e, v, r);
} else {
- rasprintf(&EVR, "%s-%s", v, r);
+ rasprintf(&evr, "%s-%s", v, r);
}
if (np)
*np = n;
- return EVR;
+ return evr;
}
rpm_color_t headerGetColor(Header h)