Author: troll                        Date: Sun Feb 20 13:12:58 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- prevent malfunctions when HOME_ETC variable is empty

---- Files affected:
SOURCES:
   gqview-home_etc.patch (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SOURCES/gqview-home_etc.patch
diff -u SOURCES/gqview-home_etc.patch:1.5 SOURCES/gqview-home_etc.patch:1.6
--- SOURCES/gqview-home_etc.patch:1.5   Tue Feb  3 03:42:07 2004
+++ SOURCES/gqview-home_etc.patch       Sun Feb 20 14:12:53 2005
@@ -61,7 +61,7 @@
 +      
 +      if (home_etc) return home_etc;
 +      h2 = getenv("HOME_ETC");
-+      if (!h2) home_etc = homedir_old();
++      if (!h2 || (strncmp(h2, "", 1) == 0)) home_etc = homedir_old();
 +      else home_etc = g_locale_to_utf8(h2, -1, NULL, NULL, NULL);
 +      return home_etc;
 +}
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/gqview-home_etc.patch?r1=1.5&r2=1.6&f=u


_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to