1
0
Fork 0
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:
Marcin Cieslak 2012-09-24 13:36:16 +02:00 committed by Jon Trulson
parent e3564643ad
commit 22a0f8f497
3 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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();