mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtstyle: Coverity 87763
This commit is contained in:
parent
0dc2828f57
commit
c743c30cb9
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue