[pacman-dev] [PATCH] Use NULL instead of "" as no causingpkg

Nagy Gabor ngaba at bibl.u-szeged.hu
Sat Jul 19 10:04:05 EDT 2008


From 84b7a3ca3b5d2c52d43706ffc07a59eda7523d7f Mon Sep 17 00:00:00 2001
From: Nagy Gabor <ngaba at bibl.u-szeged.hu>
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 <ngaba at bibl.u-szeged.hu>
---
 lib/libalpm/deps.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c
index 0f3f45c..c667daa 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);
 			}
 		}
-- 
1.5.6.3




More information about the pacman-dev mailing list