[MPlayer-cvslog] r22274 - trunk/subreader.c

faust3 subversion at mplayerhq.hu
Mon Feb 19 11:48:50 CET 2007


Author: faust3
Date: Mon Feb 19 11:48:50 2007
New Revision: 22274

Modified:
   trunk/subreader.c

Log:
10l: comparison of char* ptrs with string literals

Modified: trunk/subreader.c
==============================================================================
--- trunk/subreader.c	(original)
+++ trunk/subreader.c	Mon Feb 19 11:48:50 2007
@@ -747,7 +747,7 @@
 	}
     current->lines=i+1;
 
-    if ((current->text[0]=="") && (current->text[1]=="")) {
+    if (!strlen(current->text[0]) && !strlen(current->text[1])) {
 #ifdef USE_SORTSUB
 	previous_sub_end = 0;
 #else
@@ -803,7 +803,7 @@
 	}
     current->lines=i+1;
 
-    if ((current->text[0]=="") && (i==0)) {
+    if (!strlen(current->text[0]) && (i==0)) {
 #ifdef USE_SORTSUB
 	previous_sub_end = 0;
 #else



More information about the MPlayer-cvslog mailing list