dtmail: fix warning: comparison is always false
authorMarcin Cieslak <saper@saper.info>
Mon, 24 Sep 2012 11:36:17 +0000 (13:36 +0200)
committerJon Trulson <jon@radscan.com>
Tue, 25 Sep 2012 00:27:45 +0000 (18:27 -0600)
This warning was caused by a typo:

warning: comparison is always false due to limited range of data type

cde/programs/dtmail/dtmail/dtb_utils.C

index 1e5a5196457ca48d43f13bed83ec41400e987604..04f80303f9cd04d9df75d3b430b46823bfab4e0c 100644 (file)
@@ -963,7 +963,7 @@ dtb_help_back_hdlr(
     ** Parse the combined volume/locationID string.  Disable the "More..."
     ** button if there isn't any help info, and enable it if there is.
     */
-    if( buffer == 0 || (*buffer == '/0') ||
+    if( buffer == 0 || (*buffer == '\0') ||
        (cp=strrchr(buffer,'/')) == (char *)NULL) {
                XtSetSensitive(more_button,False);
     }