From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by casper.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1P8Bj8-0000sk-Lx for barebox@lists.infradead.org; Tue, 19 Oct 2010 12:55:41 +0000 From: Sascha Hauer Date: Tue, 19 Oct 2010 14:55:26 +0200 Message-Id: <1287492930-15716-39-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1287492930-15716-1-git-send-email-s.hauer@pengutronix.de> References: <1287492930-15716-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 38/42] libbb: sparse fixes To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- lib/libbb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/libbb.c b/lib/libbb.c index ee91fec..4d532f6 100644 --- a/lib/libbb.c +++ b/lib/libbb.c @@ -29,7 +29,7 @@ char *concat_path_file(const char *path, const char *filename) while (*filename == '/') filename++; - str = xmalloc(strlen(path) + (lc==0 ? 1 : 0) + strlen(filename) + 1); + str = xmalloc(strlen(path) + (lc==NULL ? 1 : 0) + strlen(filename) + 1); sprintf(str, "%s%s%s", path, (lc==NULL ? "/" : ""), filename); return str; -- 1.7.2.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox