* cserve: Fix potential source of segv in cserve.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 15 May 2009 13:19:27 +0000 (13:19 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 15 May 2009 13:19:27 +0000 (13:19 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@40672 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/evas_cserve_main.c

index d828037..5d46ae1 100644 (file)
@@ -858,7 +858,7 @@ message(void *fdata, Server *s, Client *c, int opcode, int size, unsigned char *
              lopt.h = rep->lopt.h;
              D("... img_load '%s'\n", file);
              if (key) D("'%s'\n", key);
-             else D("   '%s'\n");
+             else D("   '%s'\n", NULL);
              D("   lopt { %i %1.1f %i %i}\n", 
                lopt.scale_down_by, lopt.dpi, lopt.w, lopt.h);
              img = img_load(file, key, &lopt);
@@ -1178,6 +1178,7 @@ message(void *fdata, Server *s, Client *c, int opcode, int size, unsigned char *
         D("OP_... UNKNOWN??? %i opcode: %i\n", c->pid, opcode);
         break;
      }
+   return 0;
 }
 
 static void