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:
parent
ba40a9b6a7
commit
948b80756a
@ -43,8 +43,7 @@ _BZombieReplicantView_::MessageReceived(BMessage *msg)
|
|||||||
case B_ABOUT_REQUESTED:
|
case B_ABOUT_REQUESTED:
|
||||||
{
|
{
|
||||||
const char *addOn = NULL;
|
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) {
|
if (fArchive->FindString("add_on", &addOn) == B_OK) {
|
||||||
BMimeType type(addOn);
|
BMimeType type(addOn);
|
||||||
type.GetShortDescription(description);
|
type.GetShortDescription(description);
|
||||||
|
Loading…
Reference in New Issue
Block a user