From 227a438ea73216ee73de0e64ba49580d52f62d1b Mon Sep 17 00:00:00 2001 From: ChulHo Song Date: Wed, 3 Feb 2016 11:30:23 +0900 Subject: [PATCH] source: add braces to if statements Change-Id: Iccd3f70f0773099c2d38bddb86e7dc1fc3c75eca Signed-off-by: ChulHo Song (cherry picked from commit c390c54dbc94019b5725d1e8b7890bba3e46742e) --- tizen/src/emul_state.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tizen/src/emul_state.c b/tizen/src/emul_state.c index 2ad3e53bb9..4888f60490 100644 --- a/tizen/src/emul_state.c +++ b/tizen/src/emul_state.c @@ -116,9 +116,10 @@ void set_emul_host_ip(char *kernel_cmdline) int len = strlen(HOST_IP_PREFIX); int i, j; int max_len = strlen(buf); - for(i = len, j = 0; i < max_len; i++) { - if (buf[i] == ' ' || buf[i] == '\0') + for (i = len, j = 0; i < max_len; i++) { + if (buf[i] == ' ' || buf[i] == '\0') { break; + } buf_host_ip[j++] = buf[i]; } @@ -799,10 +800,11 @@ const char *get_sdcard_image_path(void) const char *sdcard_path; int path_length = strnlen(sdcard_abs_path, sizeof(sdcard_abs_path)); - if (sdcard_abs_path[path_length - 1] != '\\') + if (sdcard_abs_path[path_length - 1] != '\\') { sdcard_path = g_strdup_printf("%s\\", sdcard_abs_path); - else + } else { sdcard_path = g_strdup(sdcard_abs_path); + } #endif g_free((void*)sdcard_rel_path); -- 2.34.1