From: Fabian Keil <fk@fabiankeil.de>
Date: Tue, 19 May 2009 17:45:31 +0000 (+0000)
Subject: Help clang understand that we aren't dereferencing a NULL pointer here.
X-Git-Tag: v_3_0_13~82
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/%22javascript:back()/@default-cgi@show-status?a=commitdiff_plain;h=c3304436248b6e11a90d2f16eb4f7f68b391a74f;p=privoxy.git

Help clang understand that we aren't dereferencing a NULL pointer here.
---

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] != '\\')
       {