diff options
author | Nikias Bassen | 2013-10-08 22:24:39 +0200 |
---|---|---|
committer | Nikias Bassen | 2013-10-08 22:24:39 +0200 |
commit | 386aa893056b3ca5caa20103389e7677b5f12b85 (patch) | |
tree | fd1468a2ff3e11b356bc84589abfae80126cf864 | |
parent | c6e50378acf7f0afe6dd609167dc96eebf1460e8 (diff) | |
download | usbmuxd-386aa893056b3ca5caa20103389e7677b5f12b85.tar.gz usbmuxd-386aa893056b3ca5caa20103389e7677b5f12b85.tar.bz2 |
main: prevent uninitialized value when using struct flock
-rw-r--r-- | src/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -452,6 +452,7 @@ int main(int argc, char *argv[]) lock.l_whence = SEEK_SET; lock.l_start = 0; lock.l_len = 0; + lock.l_pid = 0; fcntl(lfd, F_GETLK, &lock); close(lfd); if (lock.l_type != F_UNLCK) { |