LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File strcmp.diff of Package motif (Project devel:libraries:c_c++)

Index: b/lib/Xm/Xpms_popen.c
===================================================================
--- a/lib/Xm/Xpms_popen.c
+++ b/lib/Xm/Xpms_popen.c
@@ -56,7 +56,7 @@ FILE *Xpms_popen(char *cmd, const char *
   char *cmdcpy;
 
 
-  if(cmd == NULL || cmd == "")
+  if(cmd == NULL || cmd[0] == '\0')
     return(NULL);
 
   if(type[0] != 'r' && type[0] != 'w')