From 6c2cb7dc233dc8035770fabbdfd817dffcc44a02 Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Mon, 17 Apr 2006 22:05:07 +0000 Subject: [PATCH] Bug 313962. Fix simple uninitialized variable crasher in GConf nsSystemPrefs. r=timeless git-svn-id: svn://10.0.0.236/trunk@194540 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/pref/system-pref/src/nsSystemPref.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mozilla/extensions/pref/system-pref/src/nsSystemPref.cpp b/mozilla/extensions/pref/system-pref/src/nsSystemPref.cpp index 9dc9177d206..09045205bcb 100644 --- a/mozilla/extensions/pref/system-pref/src/nsSystemPref.cpp +++ b/mozilla/extensions/pref/system-pref/src/nsSystemPref.cpp @@ -60,6 +60,8 @@ struct SysPrefItem { SysPrefItem() { prefName = nsnull; defaultValue.intVal = 0; + defaultValue.stringVal = nsnull; + defaultValue.boolVal = PR_FALSE; isLocked = PR_FALSE; } void SetPrefName(const char *aPrefName) {