diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2007-04-06 16:11:45 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2007-04-06 16:11:45 +0000 |
| commit | bbbd795b2f36d25aefdb823a4a585da8468eed76 (patch) | |
| tree | 3f2435264cd5ec334d5a4a15b8b75804cd666c55 /src | |
| parent | some people reported crashes when adding nonexisting dirs to dialog - though ... (diff) | |
| download | inkscape-bbbd795b2f36d25aefdb823a4a585da8468eed76.tar.gz inkscape-bbbd795b2f36d25aefdb823a4a585da8468eed76.zip | |
Prevent null pointer dereferencing
(bzr r2826)
Diffstat (limited to 'src')
| -rw-r--r-- | src/inkscape.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp index af6ef4f05..829aacdc9 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -727,7 +727,7 @@ inkscape_load_menus (Inkscape::Application *inkscape) Inkscape::XML::Node * inkscape_get_repr (Inkscape::Application *inkscape, const gchar *key) { - if (key == NULL) { + if ( (key == NULL) || (inkscape == NULL) ) { return NULL; } |
