mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtmail: fix warning: NULL used in arithmetic
NULL != NULL makes no sense, really...
This commit is contained in:
parent
e3564643ad
commit
22a0f8f497
3 changed files with 3 additions and 3 deletions
|
@ -99,7 +99,7 @@ void AntiCheckBoxUiItem::writeFromSourceToUi()
|
|||
else if (value == NULL || strcmp(value, "") == 0)
|
||||
options_checkbox_set_value(w, FALSE, this->dirty_bit);
|
||||
|
||||
if (NULL != NULL)
|
||||
if (value != NULL)
|
||||
free((void*) value);
|
||||
}
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ void CheckBoxUiItem::writeFromSourceToUi()
|
|||
else if (NULL == value || strcmp(value, "f") == 0)
|
||||
options_checkbox_set_value(w, FALSE, this->dirty_bit);
|
||||
|
||||
if (NULL != NULL)
|
||||
if (value != NULL)
|
||||
free((void*) value);
|
||||
}
|
||||
|
||||
|
|
|
@ -279,7 +279,7 @@ ComposeFamily::appendSignature(SendMsgDialog * compose)
|
|||
compose->get_editor()->textEditor()->append_to_contents(fullpath);
|
||||
if (NULL != fullpath)
|
||||
free((void*) fullpath);
|
||||
if (NULL != NULL)
|
||||
if (NULL != value)
|
||||
free((void*) value);
|
||||
|
||||
compose->get_editor()->textEditor()->set_to_top();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue