aboutsummaryrefslogtreecommitdiffstats
path: root/main/mrxvt/mrxvt-0.5.4-002-fix-segfault-when-wd-empty.patch
blob: c9af740e505a4e7ba17904fca6f1c03d596fe1f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ru a/src/tabbar.c b/src/tabbar.c
--- a/src/tabbar.c	2009-08-19 21:12:48.000000000 +0000
+++ b/src/tabbar.c	2009-08-19 21:13:35.000000000 +0000
@@ -1314,7 +1314,7 @@
 		if( p.we_wordc > 1)
 		    rxvt_msg( DBG_ERROR, DBG_TABBAR,
 			    "Too many words when expanding %s\n", cwdOption );
-		else
+               else if( NOT_NULL( *p.we_wordv ) )
 		{
 		    filename = *p.we_wordv;