From 948b80756abfac1dd4c7a06af4fe47155745852b Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 30 Jul 2007 10:26:24 +0000 Subject: [PATCH] Initialize the string, so we don't get garbage in case of problems in getting the name. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21744 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/ZombieReplicantView.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/kits/interface/ZombieReplicantView.cpp b/src/kits/interface/ZombieReplicantView.cpp index 79294adf53..93311ae06f 100644 --- a/src/kits/interface/ZombieReplicantView.cpp +++ b/src/kits/interface/ZombieReplicantView.cpp @@ -43,8 +43,7 @@ _BZombieReplicantView_::MessageReceived(BMessage *msg) case B_ABOUT_REQUESTED: { const char *addOn = NULL; - char description[B_MIME_TYPE_LENGTH]; - + char description[B_MIME_TYPE_LENGTH] = { '\0' }; if (fArchive->FindString("add_on", &addOn) == B_OK) { BMimeType type(addOn); type.GetShortDescription(description);