dtmail: fix warning: NULL used in arithmetic
NULL != NULL makes no sense, really...
This commit is contained in:
committed by
Jon Trulson
parent
e3564643ad
commit
22a0f8f497
@@ -99,7 +99,7 @@ void AntiCheckBoxUiItem::writeFromSourceToUi()
|
|||||||
else if (value == NULL || strcmp(value, "") == 0)
|
else if (value == NULL || strcmp(value, "") == 0)
|
||||||
options_checkbox_set_value(w, FALSE, this->dirty_bit);
|
options_checkbox_set_value(w, FALSE, this->dirty_bit);
|
||||||
|
|
||||||
if (NULL != NULL)
|
if (value != NULL)
|
||||||
free((void*) value);
|
free((void*) value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ void CheckBoxUiItem::writeFromSourceToUi()
|
|||||||
else if (NULL == value || strcmp(value, "f") == 0)
|
else if (NULL == value || strcmp(value, "f") == 0)
|
||||||
options_checkbox_set_value(w, FALSE, this->dirty_bit);
|
options_checkbox_set_value(w, FALSE, this->dirty_bit);
|
||||||
|
|
||||||
if (NULL != NULL)
|
if (value != NULL)
|
||||||
free((void*) value);
|
free((void*) value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ ComposeFamily::appendSignature(SendMsgDialog * compose)
|
|||||||
compose->get_editor()->textEditor()->append_to_contents(fullpath);
|
compose->get_editor()->textEditor()->append_to_contents(fullpath);
|
||||||
if (NULL != fullpath)
|
if (NULL != fullpath)
|
||||||
free((void*) fullpath);
|
free((void*) fullpath);
|
||||||
if (NULL != NULL)
|
if (NULL != value)
|
||||||
free((void*) value);
|
free((void*) value);
|
||||||
|
|
||||||
compose->get_editor()->textEditor()->set_to_top();
|
compose->get_editor()->textEditor()->set_to_top();
|
||||||
|
|||||||
Reference in New Issue
Block a user