From 1c9f8ef67165c7402d6b2edb346908f1a59a2ba3 Mon Sep 17 00:00:00 2001 From: Suchang Woo Date: Thu, 26 Feb 2015 11:58:53 +0900 Subject: [PATCH] Fix build error Error message: [ 260s] /home/abuild/rpmbuild/BUILD/capi-appfw-app-manager-0.2.4/src/app_context.c:400:4: error: 'app_context' may be used uninitialized in this function [-Werror=maybe-uninitialized] [ 260s] app_context_destroy(app_context); [ 260s] ^ Signed-off-by: Suchang Woo Change-Id: I37192aead8c44bf340da93260ec74ff221330183 --- src/app_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app_context.c b/src/app_context.c index 65bc80b..247e9da 100644 --- a/src/app_context.c +++ b/src/app_context.c @@ -384,7 +384,7 @@ static void app_context_pid_table_entry_destroyed_cb(void * data) static int app_context_launched_event_cb(pid_t pid, void *data) { - app_context_h app_context; + app_context_h app_context = NULL; app_context_lock_event_cb_context(); -- 2.7.4