From 39325e0262265ba947bdf7d6b979e5f34673135c Mon Sep 17 00:00:00 2001 From: Andrew Bettison Date: Thu, 9 Aug 2012 13:45:57 +0930 Subject: [PATCH] Fix compile error --- monitor-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor-client.c b/monitor-client.c index 369438e7..0d586d6c 100644 --- a/monitor-client.c +++ b/monitor-client.c @@ -72,7 +72,7 @@ int monitor_socket_name(struct sockaddr_un *name){ /* Use abstract namespace as Android has no writable FS which supports sockets. Abstract namespace is just plain better, anyway, as no dead files end up hanging around. */ - name.sun_path[0]=0; + name->sun_path[0] = '\0'; /* XXX: 104 comes from OSX sys/un.h - no #define (note Linux has UNIX_PATH_MAX and it's 108(!)) */ snprintf(&name->sun_path[1],104-2, confValueGet("monitor.socket",DEFAULT_MONITOR_SOCKET_NAME));