From 4a34da849d6f113b6295c37a4261de855d57336d Mon Sep 17 00:00:00 2001 From: matsutsuka Date: Sat, 22 Sep 2007 04:12:30 +0000 Subject: [PATCH] Initialization of string has been added, so as to strlen works appropriately while showing the textentry widget. --- apps/process-list/process-list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/process-list/process-list.c b/apps/process-list/process-list.c index 5dc8e7469..75b8de708 100644 --- a/apps/process-list/process-list.c +++ b/apps/process-list/process-list.c @@ -29,7 +29,7 @@ * * This file is part of the Contiki desktop environment * - * $Id: process-list.c,v 1.4 2007/08/30 20:32:29 oliverschmidt Exp $ + * $Id: process-list.c,v 1.5 2007/09/22 04:12:30 matsutsuka Exp $ * */ @@ -53,7 +53,7 @@ static struct ctk_label processnamelabels[MAX_PROCESSLABELS]; static struct ctk_label killlabel = {CTK_LABEL(0, PROCESSLIST_HEIGHT - 2, 12, 1, "Kill process")}; -static char killprocnum[3]; +static char killprocnum[3] = ""; static struct ctk_textentry killtextentry = {CTK_TEXTENTRY(13, PROCESSLIST_HEIGHT - 2, 2, 1, killprocnum, 2)}; static struct ctk_button killbutton =