dtstyle: Coverity 87763

This commit is contained in:
Peter Howkins
2018-07-03 18:39:32 +01:00
parent 0dc2828f57
commit c743c30cb9

View File

@@ -248,7 +248,9 @@ ReadPalette(
/* load the filename into the name element */
p = strstr (in_filename, PALETTE_SUFFIX);
*p = '\0';
if(p) {
*p = '\0';
}
strcpy(new_palette->name, in_filename);
/*