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 | 9c85c30d1d57fa8d4439907ca2c509274899db7b (patch) | |
tree | 85c03f6d1e29fddf233da4634038954961437310 /navit/bookmarks.c | |
parent | 369b6f05192a2925782582b686b3bf47c8302317 (diff) | |
download | navit-svn-9c85c30d1d57fa8d4439907ca2c509274899db7b.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 c5f040c9..584da6e7 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_); } |