diff options
| author | su_v <suv-sf@users.sourceforge.net> | 2014-09-19 00:07:09 +0000 |
|---|---|---|
| committer | ~suv <suv-sf@users.sourceforge.net> | 2014-09-19 00:07:09 +0000 |
| commit | 274a671c959becc8c989dc6a3561c608c173f6d3 (patch) | |
| tree | 1ab36b51da49862d28ebebb8ed0db985735f6f5b /src/extension/system.cpp | |
| parent | update to trunk (r13540) (diff) | |
| parent | Fix build for fink on OS X 10.9 by including unistd.h (diff) | |
| download | inkscape-274a671c959becc8c989dc6a3561c608c173f6d3.tar.gz inkscape-274a671c959becc8c989dc6a3561c608c173f6d3.zip | |
update to trunk (r13560)
(bzr r13398.1.10)
Diffstat (limited to 'src/extension/system.cpp')
| -rw-r--r-- | src/extension/system.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/extension/system.cpp b/src/extension/system.cpp index c244d9c16..45feb882f 100644 --- a/src/extension/system.cpp +++ b/src/extension/system.cpp @@ -556,7 +556,7 @@ build_from_file(gchar const *filename) } /** - * \return The module created + * \return The module created, or NULL if buffer is invalid * \brief This function creates a module from a buffer holding an * XML description. * \param buffer The buffer holding the XML description of the module. @@ -568,6 +568,7 @@ Extension * build_from_mem(gchar const *buffer, Implementation::Implementation *in_imp) { Inkscape::XML::Document *doc = sp_repr_read_mem(buffer, strlen(buffer), INKSCAPE_EXTENSION_URI); + g_return_val_if_fail(doc != NULL, NULL); Extension *ext = build_from_reprdoc(doc, in_imp); Inkscape::GC::release(doc); return ext; |
