File dvdauthor-0.6.14-strcmp.patch of Package dvdauthor
diff -ruN dvdauthor-0.6.14-orig/src/subreader.c dvdauthor-0.6.14/src/subreader.c
--- dvdauthor-0.6.14-orig/src/subreader.c 2006-06-01 06:04:50.000000000 +0200
+++ dvdauthor-0.6.14/src/subreader.c 2009-11-23 14:32:50.000000000 +0100
@@ -658,7 +658,7 @@
}
current->lines=i+1;
- if ((current->text[0]=="") && (current->text[1]=="")) {
+ if ((strcmp(current->text[0], "")) && (strcmp(current->text[1], ""))) {
#ifdef USE_SORTSUB
previous_sub_end = 0;
#else
@@ -714,7 +714,7 @@
}
current->lines=i+1;
- if ((current->text[0]=="") && (i==0)) {
+ if ((strcmp(current->text[0], "")) && (i==0)) {
#ifdef USE_SORTSUB
previous_sub_end = 0;
#else