aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2014-11-30 23:31:42 +0800
committerkwm <kwm@FreeBSD.org>2014-11-30 23:31:42 +0800
commit94d83173874a9e0ed3004eecc733190d56dd00cf (patch)
tree94ea6944afb31dc23b1e05c24e516c68934ec979 /x11
parent342daf6040475826f8aa7ed626563204a5494e95 (diff)
downloadfreebsd-ports-gnome-94d83173874a9e0ed3004eecc733190d56dd00cf.tar.gz
freebsd-ports-gnome-94d83173874a9e0ed3004eecc733190d56dd00cf.tar.zst
freebsd-ports-gnome-94d83173874a9e0ed3004eecc733190d56dd00cf.zip
Add patch to fix the build with clang 3.5.
Submitted by: clang3.5 upgrade exp-run via antoine@ Obtained from: upstream
Diffstat (limited to 'x11')
-rw-r--r--x11/xman/files/patch-handler.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/x11/xman/files/patch-handler.c b/x11/xman/files/patch-handler.c
new file mode 100644
index 000000000000..381d748d3bd1
--- /dev/null
+++ b/x11/xman/files/patch-handler.c
@@ -0,0 +1,24 @@
+From bb926ce84421b1fc9795c229ce32332b77a4b18d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=B6rg=20Sonnenberger?= <joerg@NetBSD.org>
+Date: Thu, 22 May 2014 00:15:36 +0200
+Subject: Fix tautology to the intended check.
+
+Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
+
+diff --git a/handler.c b/handler.c
+index e61687e..87a928e 100644
+--- handler.c
++++ handler.c
+@@ -320,7 +320,7 @@ SaveFormattedPage(Widget w, XEvent * event, String * params,
+ * If we are not active then take no action.
+ */
+
+- if (man_globals->tempfile == NULL)
++ if (man_globals->tempfile[0] == '\0')
+ return;
+
+ switch (params[0][0]) {
+--
+cgit v0.10.2
+