From: Luiz Augusto von Dentz Date: Wed, 26 Jun 2013 13:08:35 +0000 (+0300) Subject: obexd/MAP: Fix assigning pointer not value to 0 X-Git-Tag: android-x86-4.4-r3~7928 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6132e6eee07fab1f5eda9420a39b61364d5d41ed;p=android-x86%2Fexternal-bluetooth-bluez.git obexd/MAP: Fix assigning pointer not value to 0 The fix introduced by 455fb131f08cddc9759c877e38ebff3b4bd975b2 would leave err value uninitialized and set the pointer to 0 which doesn't make any sense. --- diff --git a/obexd/client/mns.c b/obexd/client/mns.c index cf2e77e3d..76a5e24e2 100644 --- a/obexd/client/mns.c +++ b/obexd/client/mns.c @@ -270,7 +270,7 @@ static void *event_report_open(const char *name, int oflag, mode_t mode, mns->buffer = g_string_new(""); if (err != NULL) - err = 0; + *err = 0; return mns; }