summaryrefslogtreecommitdiffstats
path: root/source/xap/gv/gv-resource.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/gv/gv-resource.patch')
-rw-r--r--source/xap/gv/gv-resource.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/source/xap/gv/gv-resource.patch b/source/xap/gv/gv-resource.patch
new file mode 100644
index 000000000..b1352e79f
--- /dev/null
+++ b/source/xap/gv/gv-resource.patch
@@ -0,0 +1,29 @@
+--- gv-3.7.4/src/main.c- 2012-04-01 10:43:24.000000000 -0400
++++ gv-3.7.4/src/main.c 2013-04-12 18:39:47.578033642 -0400
+@@ -1449,7 +1449,7 @@
+ if (s) gv_gs_arguments = s;
+
+ s = resource_getResource(db,gv_class,gv_name,"gsSafeDir",NULL);
+- if (!strcasecmp(s,"true")) gv_gs_safeDir = 1; else gv_gs_safeDir = 0;
++ if (s && !strcasecmp(s,"true")) gv_gs_safeDir = 1; else gv_gs_safeDir = 0;
+
+ s = resource_getResource(db,gv_class,gv_name,"gsSafer",NULL);
+ if (s && !strcasecmp(s,"true")) gv_gs_safer = 1; else gv_gs_safer = 0;
+@@ -1468,13 +1468,13 @@
+ }
+
+ s = resource_getResource(db,gv_class,gv_name,"infoVerbose",NULL);
+- if (!strcasecmp(s, "Silent")) gv_infoVerbose=0;
+- else if (!strcasecmp(s, "Errors")) gv_infoVerbose=1;
+- else if (!strcasecmp(s, "All")) gv_infoVerbose=2;
++ if (!s || !strcasecmp(s, "Errors")) gv_infoVerbose=1;
++ else if (!strcasecmp(s, "Silent")) gv_infoVerbose=0;
++ else if (!strcasecmp(s, "All")) gv_infoVerbose=2;
+ else gv_infoVerbose = 1;
+
+ s = resource_getResource(db,gv_class,gv_name,"xinerama",NULL);
+- if (!strcasecmp(s, "Off")) gv_xinerama=0;
++ if (!s || !strcasecmp(s, "Off")) gv_xinerama=0;
+ else if (!strcasecmp(s, "On")) gv_xinerama=1;
+ else if (!strcasecmp(s, "Auto")) gv_xinerama=-1;
+ else gv_xinerama = 0;