dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtmail / dtmail / CheckBoxUiItem.C
index c2651b422ef34d29cba488fd45fd315804f12be1..549e6d28bea2a6037cb58ea781e7f8685be1386c 100644 (file)
@@ -16,7 +16,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  * Floor, Boston, MA 02110-1301 USA
  */
@@ -92,13 +92,12 @@ void CheckBoxUiItem::writeFromSourceToUi()
   //
   // This assumes that a non-null value means that the 
   // value is set and that a non-null means turn on the CB
-  if (strcmp(value, "") == 0)
-    options_checkbox_set_value(w, TRUE, this->dirty_bit);
-  else if (NULL == value || strcmp(value, "f") == 0)
+  if (NULL == value || strcmp(value, "f") == 0)
     options_checkbox_set_value(w, FALSE, this->dirty_bit);
+  else if (strcmp(value, "") == 0)
+    options_checkbox_set_value(w, TRUE, this->dirty_bit);
   
-  if (NULL != NULL)
-    free((void*) value);
+  free((void*) value);
 }