Fix bogus string cast in search debug message
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
5b749eeee9
commit
7113ea4e08
@ -429,7 +429,7 @@ alpm_list_t *_alpm_db_search(alpm_db_t *db, const alpm_list_t *needles)
|
||||
for(k = alpm_pkg_get_provides(pkg); k; k = k->next) {
|
||||
alpm_depend_t *provide = k->data;
|
||||
if(regexec(®, provide->name, 0, 0, 0) == 0) {
|
||||
matched = k->data;
|
||||
matched = provide->name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -445,8 +445,8 @@ alpm_list_t *_alpm_db_search(alpm_db_t *db, const alpm_list_t *needles)
|
||||
}
|
||||
|
||||
if(matched != NULL) {
|
||||
_alpm_log(db->handle, ALPM_LOG_DEBUG, " search target '%s' matched '%s'\n",
|
||||
targ, matched);
|
||||
_alpm_log(db->handle, ALPM_LOG_DEBUG,
|
||||
"search target '%s' matched '%s'\n", targ, matched);
|
||||
ret = alpm_list_add(ret, pkg);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user