fixed valgrind issues

- fixed "use of uninitialized value" in util.c
- fixed "use of uninitialized value" in the daemon
- fixed "invalid read of size.." in client.c