Parent: 57207bf4381585b689f2320e832e59730b5a9242
Author: Anderson Lizardo <anderson.lizardo@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-01-06 21:21:35
Tree: 8efa4827d9974ee6e50f4840d79705d5b2309e33
tools: Fix possible uninitialized variable in obexctl On set_default_session(), if g_dbus_proxy_get_property() returns FALSE, desc will be uninitialized. Given that this function already checks for NULL proxy internally, it is enough to check whether it fails (and if so, set a default prompt without destination). Fixes this clang error: tools/obexctl.c:439:6: error: variable 'desc' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
Diffstat
| M | tools/obexctl.c | | | 6 | ++- - - - |
1 files changed, 2 insertions(+), 4 deletions(-)