diff options
author | Szymon Janc <szymon@janc.net.pl> | 2012-06-13 22:49:17 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:49:02 +0100 |
commit | bd8e84312f3d2f747f2ad1d701630d149c108768 (patch) | |
tree | eb4d26b5351868243e5a7d401966f6f4a851fcac /obexd/plugins | |
parent | a5524f59240c392ef452ea657e80ec087b179119 (diff) |
obexd: Fix use of uninitialized count variable
If opendir() call fails count would be passed to callback
uninitialized.
Diffstat (limited to 'obexd/plugins')
-rw-r--r-- | obexd/plugins/phonebook-dummy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/obexd/plugins/phonebook-dummy.c b/obexd/plugins/phonebook-dummy.c index 035ec3578..6b9d0403f 100644 --- a/obexd/plugins/phonebook-dummy.c +++ b/obexd/plugins/phonebook-dummy.c @@ -218,7 +218,7 @@ static gboolean read_dir(void *user_data) struct dummy_data *dummy = user_data; GString *buffer; DIR *dp; - uint16_t count, max, offset; + uint16_t count = 0, max, offset; buffer = g_string_new(""); |