summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2019-09-24 01:17:12 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2019-09-24 01:17:12 (GMT)
commita7dfb761065e2b20829560d7aeeca5c2043a2bed (patch)
tree4d54491048f732ae81afe77791b86a0ce17175eb /server
parentde8af4666db2e9703f2a4bf1d7dba4754837ede9 (diff)
downloadlibmedia-thumbnail-a7dfb761065e2b20829560d7aeeca5c2043a2bed.zip
libmedia-thumbnail-a7dfb761065e2b20829560d7aeeca5c2043a2bed.tar.gz
libmedia-thumbnail-a7dfb761065e2b20829560d7aeeca5c2043a2bed.tar.bz2
Change-Id: I020efe153914379277f0a43552978353ac493a59 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'server')
-rwxr-xr-xserver/thumb-server-internal.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/server/thumb-server-internal.c b/server/thumb-server-internal.c
index 79c2a80..3d97cb4 100755
--- a/server/thumb-server-internal.c
+++ b/server/thumb-server-internal.c
@@ -116,6 +116,11 @@ gboolean _thumb_server_read_socket(GIOChannel *src, GIOCondition condition, gpoi
int sock = -1;
int client_sock = -1;
+ int buf_size = 0;
+ int send_len = 0;
+ int send_pos = 0;
+ unsigned char *buf = NULL;
+
memset((void *)&recv_msg, 0, sizeof(recv_msg));
memset((void *)&res_msg, 0, sizeof(res_msg));
memset((void *)&credentials, 0, sizeof(credentials));
@@ -163,10 +168,6 @@ gboolean _thumb_server_read_socket(GIOChannel *src, GIOCondition condition, gpoi
else
res_msg.dst_path[0] = '\0';
- int buf_size = 0;
- int send_len = 0;
- int send_pos = 0;
- unsigned char *buf = NULL;
_media_thumb_set_buffer(&res_msg, &buf, &buf_size);
while (buf_size > 0) {