Fix:Core:Added null check to navit_say() to avoid crash when there is no speech entry...
authortegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 2 Dec 2010 19:29:06 +0000 (19:29 +0000)
committertegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 2 Dec 2010 19:29:06 +0000 (19:29 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3746 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/navit.c

index 89cec0a..bd2d72c 100644 (file)
@@ -1036,7 +1036,9 @@ navit_speech_estimate(struct navit *this_, char *str)
 void
 navit_say(struct navit *this_, char *text)
 {
-       speech_say(this_->speech, text);
+       if(this_->speech) {
+               speech_say(this_->speech, text);
+       }
 }
 
 /**