From c3304436248b6e11a90d2f16eb4f7f68b391a74f Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 19 May 2009 17:45:31 +0000 Subject: [PATCH] Help clang understand that we aren't dereferencing a NULL pointer here. --- miscutil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miscutil.c b/miscutil.c index c6bd3d8a..b64fd4f7 100644 --- a/miscutil.c +++ b/miscutil.c @@ -1,4 +1,4 @@ -const char miscutil_rcs[] = "$Id: miscutil.c,v 1.62 2008/12/04 18:16:41 fabiankeil Exp $"; +const char miscutil_rcs[] = "$Id: miscutil.c,v 1.63 2009/05/16 13:27:20 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/miscutil.c,v $ @@ -655,6 +655,7 @@ char * make_path(const char * dir, const char * file) strlcpy(path, dir, path_size); } + assert(NULL != path); #if defined(_WIN32) || defined(__OS2__) if(path[strlen(path)-1] != '\\') { -- 2.39.2