diff options
author | woglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-05-01 22:15:39 +0000 |
---|---|---|
committer | woglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-05-01 22:15:39 +0000 |
commit | 672ef7296712457d3dbcdc48af77af46b269716d (patch) | |
tree | 85c03f6d1e29fddf233da4634038954961437310 /navit/bookmarks.c | |
parent | bfd04b39d131bf9ef2eadbcad8592464c1feca7a (diff) | |
download | navit-672ef7296712457d3dbcdc48af77af46b269716d.tar.gz |
Fix:Core:map_new might return a nullpointer, handle this case
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4463 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/bookmarks.c')
-rw-r--r-- | navit/bookmarks.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/bookmarks.c b/navit/bookmarks.c index c5f040c9a..584da6e7f 100644 --- a/navit/bookmarks.c +++ b/navit/bookmarks.c @@ -243,6 +243,8 @@ bookmarks_new(struct attr *parent, struct attr **attrs, struct transformation *t struct attr type={attr_type, {"textfile"}}, data={attr_data, {this_->bookmark_file}}; struct attr *attrs[]={&type, &data, NULL}; this_->bookmark=map_new(this_->parent, attrs); + if (!this_->bookmark) + return NULL; bookmarks_load_hash(this_); } |