diff options
author | Eric Koegel <eric.koegel@gmail.com> | 2017-06-21 10:51:44 +0300 |
---|---|---|
committer | Eric Koegel <eric.koegel@gmail.com> | 2017-06-21 19:53:18 +0300 |
commit | b281380528f613359bb6e3481c1da43399f976c5 (patch) | |
tree | d61d9aadf684ae9cf712e79edf36f871a438a336 | |
parent | d4043586087766a2c9d217880de83a68c93fefb2 (diff) | |
download | ConsoleKit2-b281380528f613359bb6e3481c1da43399f976c5.tar.gz |
fix: correct uninitialized variable warning
-rw-r--r-- | src/ck-sysdeps-unix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ck-sysdeps-unix.c b/src/ck-sysdeps-unix.c index 64ed399..6d39dff 100644 --- a/src/ck-sysdeps-unix.c +++ b/src/ck-sysdeps-unix.c @@ -74,7 +74,7 @@ ck_get_socket_peer_credentials (int socket_fd, uid_t *uid, GError **error) { - gboolean ret; + gboolean ret = FALSE; uid_t uid_read = 0; pid_t pid_read = 0; @@ -88,7 +88,6 @@ ck_get_socket_peer_credentials (int socket_fd, pid_read = -1; uid_read = -1; - ret = FALSE; cr_len = sizeof (cr); |