1
0
Fork 0
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:
Peter Howkins 2018-03-31 00:15:05 +01:00
parent edd928caf5
commit 73b6311a83
5 changed files with 15 additions and 27 deletions

View file

@ -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 */
/*