From b03678d00aa3620ca87022cc29348add60206fd2 Mon Sep 17 00:00:00 2001 From: faust3 Date: Mon, 19 Feb 2007 10:48:50 +0000 Subject: 10l: comparison of char* ptrs with string literals git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22274 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subreader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subreader.c') diff --git a/subreader.c b/subreader.c index 03db411b02..8bd5419d17 100644 --- a/subreader.c +++ b/subreader.c @@ -747,7 +747,7 @@ static subtitle *sub_read_line_aqt(stream_t *st,subtitle *current) { } 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 @@ static subtitle *sub_read_line_subrip09(stream_t *st,subtitle *current) { } 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 -- cgit v1.2.3