index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/deps.c | 6 |
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 0e210b4e..66b72e58 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -462,10 +462,14 @@ void splitdep(char *depstr, pmdepend_t *depend) char *str = NULL; char *ptr = NULL; - if(depstr == NULL) { + if(depstr == NULL || depend == NULL) { return; } + depend->mod = 0; + depend->name[0] = 0; + depend->version[0] = 0; + str = strdup(depstr); if((ptr = strstr(str, ">="))) { |