diff options
author | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-11-26 12:49:18 +0000 |
---|---|---|
committer | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-11-26 12:49:18 +0000 |
commit | 70998a37f7e2b57ad098716dcb092b2a39929f28 (patch) | |
tree | 6bb5f62aeaedba7780ad89007a236d99d7999c7b /navit/navit.c | |
parent | 4887edd74c4a5f0b31010357ad24a4bed3296444 (diff) | |
download | navit-70998a37f7e2b57ad098716dcb092b2a39929f28.tar.gz |
Fix:core:Check if speech output is available, to avoid crashing.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5974 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/navit.c')
-rw-r--r-- | navit/navit.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/navit/navit.c b/navit/navit.c index 0106ff3ce..aca3ef096 100644 --- a/navit/navit.c +++ b/navit/navit.c @@ -2775,7 +2775,11 @@ navit_get_attr(struct navit *this_, enum attr_type type, struct attr *attr, stru attr->u.route=this_->route; break; case attr_speech: - attr->u.speech=this_->speech; + if(this_->speech) { + attr->u.speech=this_->speech; + } else { + return 0; + } break; case attr_timeout: attr->u.num=this_->center_timeout; |