summaryrefslogtreecommitdiff
path: root/xhost.c
diff options
context:
space:
mode:
Diffstat (limited to 'xhost.c')
-rw-r--r--xhost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xhost.c b/xhost.c
index 576513a..a67d136 100644
--- a/xhost.c
+++ b/xhost.c
@@ -448,8 +448,9 @@ change_host(Display *dpy, char *name, Bool add)
}
#endif
if (family == FamilyLocalHost) {
+ char empty[] = "";
ha.length = 0;
- ha.address = "";
+ ha.address = empty;
ha.family = family;
if (add)
XAddHost(dpy, &ha);