mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
libDtWidget: Resolve some Coverity warnings
This commit is contained in:
parent
edd928caf5
commit
73b6311a83
5 changed files with 15 additions and 27 deletions
|
|
@ -304,8 +304,7 @@ SetUndoDeletionState(
|
|||
strcat(M_deletedText(pPriv), oldUndo);
|
||||
M_deletionStart(pPriv) = cb->startPos;
|
||||
}
|
||||
if(oldUndo != (char *)NULL)
|
||||
XtFree(oldUndo);
|
||||
XtFree(oldUndo);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -323,8 +322,7 @@ SetUndoDeletionState(
|
|||
M_insertionLength(pPriv) = 0;
|
||||
}
|
||||
|
||||
if( pDeletedText != (char *)NULL )
|
||||
XtFree( pDeletedText );
|
||||
XtFree( pDeletedText );
|
||||
} /* SetUndoDeletionState */
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue