1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-10 11:35:00 -05:00

fixed a pointer error

This commit is contained in:
Aurelien Foret 2005-05-04 21:20:43 +00:00
parent 9f1df56353
commit 0e72c49921

View File

@ -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);
}