diff subreader.c @ 22256:3a30fc845a9c

10l: comparison of char* ptrs with string literals
author faust3
date Mon, 19 Feb 2007 10:48:50 +0000
parents ed81b9614148
children 098e38f17263
line wrap: on
line diff
--- a/subreader.c	Mon Feb 19 06:20:47 2007 +0000
+++ b/subreader.c	Mon Feb 19 10:48:50 2007 +0000
@@ -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