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++; ptr++;
/* now str points to the filename and ptr points to the md5 hash */ /* now str points to the filename and ptr points to the md5 hash */
if(!strcmp(file, str)) { if(!strcmp(file, str)) {
char *md5 = strdup(ptr);
free(str); free(str);
return(strdup(ptr)); return(md5);
} }
free(str); free(str);
} }