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
This commit is contained in:
Stefano Ceccherini 2007-07-30 10:26:24 +00:00
parent ba40a9b6a7
commit 948b80756a

View File

@ -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);