Use a local variable to set locale.
[platform/core/appfw/app-core.git] / src / appcore.c
index 82473d5..2d12064 100644 (file)
@@ -36,6 +36,7 @@
 #include <vconf.h>
 #include <aul.h>
 #include <tzplatform_config.h>
+#include <bundle_internal.h>
 #include "appcore-internal.h"
 
 #ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT
@@ -519,7 +520,7 @@ static int __aul_handler(aul_type type, bundle *b, void *data)
                _DBG("[APP %d]     AUL event: AUL_START", _pid);
 #ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT
                bg = bundle_get_val(b, AUL_K_ALLOWED_BG);
-               if (bg && strncmp(bg, "ALLOWED_BG", strlen("ALLOWGED_BG")) == 0) {
+               if (bg && strncmp(bg, "ALLOWED_BG", strlen("ALLOWED_BG")) == 0) {
                        _DBG("[__SUSPEND__] allowed background");
                        ac->allowed_bg = true;
                        __remove_suspend_timer(data);