changeset 22256:3a30fc845a9c

10l: comparison of char* ptrs with string literals
author faust3
date Mon, 19 Feb 2007 10:48:50 +0000
parents 5f1bf0a7ed42
children f979aa12d8cc
files subreader.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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