projects
/
framework
/
system
/
oma-ds-agent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7beb9be
)
[Internal: Bug fixed ] When getting profile_info from profile_id that don't exists...
author
sanghyuk Ko
<sanghyuk.ko@samsung.com>
Mon, 22 Jul 2013 10:17:06 +0000
(19:17 +0900)
committer
sanghyuk Ko
<sanghyuk.ko@samsung.com>
Mon, 22 Jul 2013 10:17:06 +0000
(19:17 +0900)
[Problem]
-
[Cause]
-
[Solution]
-
Change-Id: I1844487899eb42237afde9a7e3ca23dc49bd290f
src/agent/service-engine/se_storage.c
patch
|
blob
|
history
diff --git
a/src/agent/service-engine/se_storage.c
b/src/agent/service-engine/se_storage.c
index
42efcff
..
21223bf
100755
(executable)
--- a/
src/agent/service-engine/se_storage.c
+++ b/
src/agent/service-engine/se_storage.c
@@
-462,6
+462,12
@@
bool get_profile_data(int account_id, char **profile_dir_name, char **profile_na
goto error;
}
+ if ((fw_account->account_id == 0)) {
+ _DEBUG_ERROR("Profile don't exists!!, account_id: [%d]", account_id);
+ err = SE_INTERNAL_ERROR;
+ goto error;
+ }
+
if (fw_account->email != NULL)
*id = strdup(fw_account->email);