From 0e72c49921c6cd492aa15bfe8bf1f46da767b320 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Wed, 4 May 2005 21:20:43 +0000 Subject: fixed a pointer error --- lib/libalpm/backup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libalpm/backup.c b/lib/libalpm/backup.c index 40a66dcf..f403469b 100644 --- a/lib/libalpm/backup.c +++ b/lib/libalpm/backup.c @@ -51,8 +51,9 @@ char *_alpm_needbackup(char *file, PMList *backup) ptr++; /* now str points to the filename and ptr points to the md5 hash */ if(!strcmp(file, str)) { + char *md5 = strdup(ptr); free(str); - return(strdup(ptr)); + return(md5); } free(str); } -- cgit v1.2.3-24-g4f1b