Fix:speech_android:Uninitialized value
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 1 Mar 2011 11:55:44 +0000 (11:55 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 1 Mar 2011 11:55:44 +0000 (11:55 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4263 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/speech/android/speech_android.c

index 8debfe9..db342d9 100644 (file)
@@ -127,7 +127,7 @@ speech_android_new(struct speech_methods *meth, struct attr **attrs, struct attr
        struct speech_priv *this;
        struct attr *flags;
        *meth=speech_android_meth;
-       this=g_new(struct speech_priv,1);
+       this=g_new0(struct speech_priv,1);
        if (!speech_android_init(this)) {
                g_free(this);
                this=NULL;