diff options
author | Dan McGee <dan@archlinux.org> | 2011-12-29 14:23:47 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-12-29 14:24:08 -0600 |
commit | 7113ea4e08fdc9ca12b8e7a4829d749923029941 (patch) | |
tree | c9713713e960a0c89e1a524b46c1442578b25eb7 /lib | |
parent | 5b749eeee999b5b332ad7545688297a37542b9a5 (diff) |
Fix bogus string cast in search debug message
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/db.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 7708d18f..8688a3cd 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -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); } } |