diff options
Diffstat (limited to 'src/analysis')
-rw-r--r-- | src/analysis/loaded.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/analysis/loaded.c b/src/analysis/loaded.c index e65cb38..5359103 100644 --- a/src/analysis/loaded.c +++ b/src/analysis/loaded.c @@ -168,7 +168,11 @@ bool g_loaded_content_restore(GLoadedContent *content, xmlDocPtr xdoc, xmlXPathC iface = G_LOADED_CONTENT_GET_IFACE(content); - result = iface->restore(content, xdoc, context, path); + if (iface->restore != NULL) + result = iface->restore(content, xdoc, context, path); + + else + result = true; return result; @@ -197,7 +201,11 @@ bool g_loaded_content_save(const GLoadedContent *content, xmlDocPtr xdoc, xmlXPa iface = G_LOADED_CONTENT_GET_IFACE(content); - result = iface->save(content, xdoc, context, path); + if (iface->save != NULL) + result = iface->save(content, xdoc, context, path); + + else + result = true; return result; |