dtstyle: Coverity 88475
authorPeter Howkins <flibble@users.sf.net>
Tue, 3 Jul 2018 17:46:59 +0000 (18:46 +0100)
committerPeter Howkins <flibble@users.sf.net>
Tue, 3 Jul 2018 17:46:59 +0000 (18:46 +0100)
cde/programs/dtstyle/Main.c

index 3c7e933cd01e30dc4e967adb34060989e5cd0751..e6a6e8e4a4cfc448dd2592bfb274f2baa6b70bef 100644 (file)
@@ -570,11 +570,9 @@ malloc_trace(0);
 
     _DtWsmSetBackdropSearchPath(style.screen, dirs, style.useMultiColorIcons);
 
-    if (string != NULL)
-      XtFree((char *)string);
+    XtFree((char *)string);
     
-    if (dirs != NULL)
-      XtFree((char *)dirs); 
+    XtFree((char *)dirs);