summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/deps.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-26 09:50:27 +0100
committerAurelien Foret <aurelien@archlinux.org>2005-03-26 09:50:27 +0100
commitbcfc1244b4114848be3f4cd67099318b6f99413d (patch)
tree4802534be60e533cbcb6c27aefedee22fc5cc2c4 /lib/libalpm/deps.c
parent2e28303ee545077f4f4739426ddb6742116621b9 (diff)
downloadpacman-bcfc1244b4114848be3f4cd67099318b6f99413d.tar.gz
pacman-bcfc1244b4114848be3f4cd67099318b6f99413d.tar.xz
updated comments
Diffstat (limited to 'lib/libalpm/deps.c')
-rw-r--r--lib/libalpm/deps.c6
1 files changed, 5 insertions, 1 deletions
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, ">="))) {