Change-Id: Ie36f13ff227392017d591daf232a5a7c9f4b52c9
Signed-off-by: Gukhwan Cho <gh78.cho@samsung.com>
}
}
}
- else
+ else {
+ s_query->projection_count = 0;
had_activity_id = true;
+ }
if (false == had_activity_id) {
s_query->projection = realloc(s_query->projection, s_query->projection_count+1);
}
}
}
- else
+ else {
+ s_query->projection_count = 0;
had_contact_id = true;
+ }
- if (0 == had_contact_id) {
+ if (false == had_contact_id) {
s_query->projection = realloc(s_query->projection, s_query->projection_count+1);
if (NULL == s_query->projection) {
CTS_ERR("realloc() Fail");
}
}
}
- else
+ else {
+ s_query->projection_count = 0;
had_my_profile_id = true;
+ }
if (false == had_my_profile_id) {
s_query->projection = realloc(s_query->projection, s_query->projection_count+1);