From 390d0bddd9458e3aafcbf280e99c71269502ae35 Mon Sep 17 00:00:00 2001 From: dwarning Date: Tue, 20 Nov 2018 16:29:11 +0100 Subject: [PATCH] Dereferencing of the null pointer 'p' might take place. Remove unused variable. --- src/xspice/cmpp/writ_ifs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/xspice/cmpp/writ_ifs.c b/src/xspice/cmpp/writ_ifs.c index e9032e210..00ff98575 100644 --- a/src/xspice/cmpp/writ_ifs.c +++ b/src/xspice/cmpp/writ_ifs.c @@ -1247,9 +1247,7 @@ static char *boolean_to_str(Boolean_t value) default: print_error("INTERNAL ERROR - boolean_to_str() - Impossible boolean value."); - { - char *p = NULL; *p = '\0'; - } + } return(str);