index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-03-25 14:51:31 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-25 15:40:12 -0500 |
commit | 7f480ccc0de9438ef499685088a49b3c5964606b (patch) | |
tree | 3e22bd022b26b4d9c9946d082867c34ab0daa224 /lib/libalpm/deps.c | |
parent | e214b260efcba299611688bdbbc02b7391632d43 (diff) |
-rw-r--r-- | lib/libalpm/deps.c | 5 |
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index ea579cda..4e6d98d0 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -825,7 +825,8 @@ const char SYMEXPORT *alpm_dep_get_version(const pmdepend_t *dep) */ char SYMEXPORT *alpm_dep_compute_string(const pmdepend_t *dep) { - char *name, *opr, *ver, *str = NULL; + const char *name, *opr, *ver; + char *str; size_t len; ALPM_LOG_FUNC; @@ -863,7 +864,7 @@ char SYMEXPORT *alpm_dep_compute_string(const pmdepend_t *dep) break; } - if(dep->version) { + if(dep->mod != PM_DEP_MOD_ANY && dep->version) { ver = dep->version; } else { ver = ""; |