From: joncruz Date: Fri, 6 Apr 2007 16:11:45 +0000 (+0000) Subject: Prevent null pointer dereferencing X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a1276e3b2f766715175bbd9f92fd41bae9781b0c;p=inkscape.git Prevent null pointer dereferencing --- 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; }