mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +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…
Add table
Add a link
Reference in a new issue