diff options
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/deps.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 = ""; |