summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/backup.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-12-22 20:38:55 +0100
committerAaron Griffin <aaron@archlinux.org>2006-12-22 20:38:55 +0100
commite3aace4a4d821d388a40545d6497069a973636d8 (patch)
treea5043edfd56135b43162587c34669515ed3ba613 /lib/libalpm/backup.c
parentd8d82215561305cb7af0a33d7810cbb9cadb2cea (diff)
downloadpacman-e3aace4a4d821d388a40545d6497069a973636d8.tar.gz
pacman-e3aace4a4d821d388a40545d6497069a973636d8.tar.xz
Cleanup from Dan McGee <dpmcgee@gmail.com> and Jürgen Hötzel <juergen@hoetzel.info>
* configure swig check * misc libalpm cleanup
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);
}