summaryrefslogtreecommitdiff
blob: 48076680f2074ca79db4bda4009b3c0513adbef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/xsnap.c
+++ b/xsnap.c
@@ -2254,7 +2254,7 @@
 	if (op_mode == 0)
 	    exitXsnap (NULL, NULL, snap_pixmap, copy_gc);
 
-	if (!root_name)
+	if (*root_name == '\0')
 		strcpy(output_name, "(stdout)");
 
 	if (op_mode == 2) {