fix svace issue 42/54942/2 accepted/tizen/mobile/20151221.224124 accepted/tizen/tv/20151221.224136 accepted/tizen/wearable/20151221.224140 submit/tizen/20151221.114632
authorJongkyu Koo <jk.koo@samsung.com>
Mon, 21 Dec 2015 02:18:32 +0000 (11:18 +0900)
committerJongkyu Koo <jk.koo@samsung.com>
Mon, 21 Dec 2015 03:17:41 +0000 (12:17 +0900)
Change-Id: Ief9f23cd9f4802a88a0be8268feb24b6119cea22
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
server/cal_server.c

index 2db8ce5..907e300 100644 (file)
@@ -113,10 +113,9 @@ static void _cal_server_set_directory_permission(const char* file, mode_t mode)
        fd = creat(file, mode);
        if (0 <= fd) {
                ret = fchown(fd, -1, CAL_SECURITY_FILE_GROUP);
-               if (-1 == ret) {
+               if (-1 == ret)
                        printf("Failed to fchown\n");
-                       return;
-               }
+
                close(fd);
        }
 }