From 2b73d451274f48f89ae434297399565aca812035 Mon Sep 17 00:00:00 2001 From: Nagy Gabor Date: Sat, 19 Jul 2008 15:57:25 +0200 Subject: [PATCH] Use NULL instead of "" as no causingpkg Our STRDUP macro (used in _alpm_depmiss_new) is NULL safe. Signed-off-by: Nagy Gabor Signed-off-by: Dan McGee --- lib/libalpm/deps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 0f3f45c8..c667daa2 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -277,7 +277,7 @@ alpm_list_t SYMEXPORT *alpm_checkdeps(pmdb_t *db, int reversedeps, _alpm_log(PM_LOG_DEBUG, "checkdeps: missing dependency '%s' for package '%s'\n", missdepstring, alpm_pkg_get_name(tp)); free(missdepstring); - miss = _alpm_depmiss_new(alpm_pkg_get_name(tp), depend, ""); + miss = _alpm_depmiss_new(alpm_pkg_get_name(tp), depend, NULL); baddeps = alpm_list_add(baddeps, miss); } }