index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-06-28 17:46:04 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-30 11:51:36 -0500 |
commit | b94e8ecd1fec4426baab8c90e7fc0d5583acdbef (patch) | |
tree | f3d4d2800610893956ccad1691509ddf53c7f487 /lib/libalpm/backup.c | |
parent | 9efd10cd2ac9a7654b2c7c94df86bf09ab54f41a (diff) |
-rw-r--r-- | lib/libalpm/backup.c | 2 |
diff --git a/lib/libalpm/backup.c b/lib/libalpm/backup.c index 0334042c..becc7be9 100644 --- a/lib/libalpm/backup.c +++ b/lib/libalpm/backup.c @@ -40,7 +40,7 @@ int _alpm_split_backup(const char *string, alpm_backup_t **backup) STRDUP(str, string, return -1); /* tab delimiter */ - ptr = strchr(str, '\t'); + ptr = str ? strchr(str, '\t') : NULL; if(ptr == NULL) { (*backup)->name = str; (*backup)->hash = NULL; |