aboutsummaryrefslogtreecommitdiff
path: root/minilogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'minilogd.c')
-rw-r--r--minilogd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/minilogd.c b/minilogd.c
index 743a585..32ca53e 100644
--- a/minilogd.c
+++ b/minilogd.c
@@ -78,8 +78,8 @@ void cleanup(int exitcode) {
void runDaemon(int sock) {
struct sockaddr_un addr;
int x,len,done=0;
- socklen_t addrlen;
- char *message;
+ socklen_t addrlen = sizeof(struct sockaddr_un);
+ char *message = NULL;
struct stat s1,s2;
struct pollfd pfds;