Apply Tizen Coding Rule 17/125317/1 accepted/tizen/unified/20170417.083020 submit/tizen/20170417.011124
authorHaejeong Kim <backto.kim@samsung.com>
Mon, 17 Apr 2017 01:04:29 +0000 (10:04 +0900)
committerHaejeong Kim <backto.kim@samsung.com>
Mon, 17 Apr 2017 01:04:29 +0000 (10:04 +0900)
Change-Id: I9e3089bc1ae03874dead6231ebeb6c44eb73e30b

packaging/media-server.spec
src/common/media-common-system.c
src/mediadb-update.c
src/scanner-v2/media-scanner-extract-v2.c
src/scanner-v2/media-scanner-scan-v2.c

index eb2d114..0ec3e36 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       media-server
 Summary:    A server for media content management
-Version:    0.3.36
+Version:    0.3.37
 Release:    0
 Group:      Multimedia/Service
 License:    Apache-2.0
index 1b7feb2..3d64277 100755 (executable)
@@ -322,7 +322,7 @@ static int __ms_gdbus_method_sync(const char *dest, const char *path, const char
                } else {
                        result++;
                        data = malloc(sizeof(ms_block_info_s));
-                       if(data == NULL) {
+                       if (data == NULL) {
                                MS_DBG_ERR("Failed to allocate memory");
                        } else {
                                data->block_type = val_int[0];
index 0bc730a..917fb5e 100755 (executable)
@@ -194,7 +194,7 @@ int __get_device_list(GArray **dev_list)
                        /* Do nothing */
                } else {
                        data = malloc(sizeof(block_info_s));
-                       if(data == NULL) {
+                       if (data == NULL) {
                                printf("Failed to allocate memory");
                        } else {
                                data->block_type = val_int[0];
index 51c8aa9..6d4f686 100755 (executable)
@@ -372,7 +372,7 @@ gboolean msc_storage_extract_thread(void *data)
 
                end_flag = extract_data->result ? LAST_EVENT : NORMAL_EVENT;
                update_path = g_strndup(extract_data->msg, extract_data->msg_size);
-               if(!MS_STRING_VALID(update_path)) {
+               if (!MS_STRING_VALID(update_path)) {
                        MS_DBG_ERR("Invalid update_path");
                        ret = MS_MEDIA_ERR_INVALID_PARAMETER;
                        goto NEXT;
index 491700c..6c2ba94 100755 (executable)
@@ -1606,7 +1606,7 @@ gboolean msc_storage_scan_thread(void *data)
 
                storage_type = ms_get_storage_type_by_full(scan_data->msg, uid);
                update_path = g_strndup(scan_data->msg, scan_data->msg_size);
-               if(!MS_STRING_VALID(update_path)) {
+               if (!MS_STRING_VALID(update_path)) {
                        MS_DBG_ERR("Invalid update_path");
                        ret = MS_MEDIA_ERR_INVALID_PARAMETER;
                        goto NEXT;