summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/backup.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/backup.c')
-rw-r--r--lib/libalpm/backup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/backup.c b/lib/libalpm/backup.c
index cf29abf0..4c438fe4 100644
--- a/lib/libalpm/backup.c
+++ b/lib/libalpm/backup.c
@@ -55,9 +55,9 @@ char *_alpm_needbackup(char *file, pmlist_t *backup)
ptr++;
/* now str points to the filename and ptr points to the md5 or sha1 hash */
if(!strcmp(file, str)) {
- char *md5 = strdup(ptr);
+ char *hash = strdup(ptr);
FREE(str);
- return(md5);
+ return(hash);
}
FREE(str);
}