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:
parent
9f1df56353
commit
0e72c49921
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user