fixed a pointer error
This commit is contained in:
parent
9f1df56353
commit
0e72c49921
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue