summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinwoo Kim <cinoo.kim@samsung.com>2015-12-22 08:02:19 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-12-22 08:04:31 +0900
commitb034b4884f4690e16fbdd33f5a443d5a2d614bf4 (patch)
treec518958eeb85a33b55cb6c9e4d123fb204243418
parentf366cdeb7663f0f7e52fad78d9770572d27a4640 (diff)
[config] fix static analysis issue
Summary: Fix static analysis issue Fix possible pointer mis-use in elm profile string handling @fix Test Plan: Static analysis Reviewers: cedric, jpeg, raster Reviewed By: raster Subscribers: seoz Differential Revision: https://phab.enlightenment.org/D3474
-rw-r--r--src/lib/elm_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c
index 50d9b6e67..7cbc2c7b2 100644
--- a/src/lib/elm_config.c
+++ b/src/lib/elm_config.c
@@ -1132,11 +1132,11 @@ _profile_fetch_from_conf(void)
1132 memcpy(_elm_profile, p, len); 1132 memcpy(_elm_profile, p, len);
1133 _elm_profile[len] = 0; 1133 _elm_profile[len] = 0;
1134 free(p); 1134 free(p);
1135 p = strchr(_elm_profile, '/');
1136 if (p) *p = 0;
1135 } 1137 }
1136 else free(p); 1138 else free(p);
1137 eet_close(ef); 1139 eet_close(ef);
1138 p = strchr(_elm_profile, '/');
1139 if (p) *p = 0;
1140 return; 1140 return;
1141 } 1141 }
1142 eet_close(ef); 1142 eet_close(ef);