From 5b9cca602229aee4e1f07046f03755795f3164d9 Mon Sep 17 00:00:00 2001 From: devilhorns Date: Wed, 18 Aug 2010 15:27:37 +0000 Subject: [PATCH] Initialize var to Zero (remove compiler warning). Remove Whitespace in cs_server. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@51283 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_textblock.c | 3 ++- src/lib/cserve/evas_cs_server.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index 56c773a..503d8f0 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -5039,7 +5039,8 @@ _evas_textblock_node_text_remove_formats_between(Evas_Object_Textblock *o, while (itr && (itr->text_node == n)) { Evas_Object_Textblock_Node_Format *nnode; - int tmp_offset; + int tmp_offset = 0; + /* start is negative when this gets relevant */ if ((offset + start <= 0) && use_end) { diff --git a/src/lib/cserve/evas_cs_server.c b/src/lib/cserve/evas_cs_server.c index dc2f2b7..2076059 100644 --- a/src/lib/cserve/evas_cs_server.c +++ b/src/lib/cserve/evas_cs_server.c @@ -213,7 +213,7 @@ server_parse(Server *s, Client *c) { int *ints; unsigned char *data, *newbuf; - + if (c->inbufsize < sizeof(int)) return 0; ints = (int *)((c->inbuf)); if ((ints[0] < 0) || (ints[0] > (1024 * 1024))) -- 2.7.4