# HG changeset patch # User faust3 # Date 1171882130 0 # Node ID 3a30fc845a9ce90ae85e130939e893900aaabe42 # Parent 5f1bf0a7ed42f45ea8c7de13468367b74d6e6589 10l: comparison of char* ptrs with string literals diff -r 5f1bf0a7ed42 -r 3a30fc845a9c subreader.c --- 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