Fix open_function call

This commit is contained in:
Moritz Lipp 2012-02-07 21:13:29 +01:00
parent 626fd50e32
commit b0cf2749e2

View File

@ -270,7 +270,7 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password
document->scale = 1; document->scale = 1;
} }
if (plugin->open_function == NULL || plugin->open_function(document) == false) { if (plugin->open_function == NULL || plugin->open_function(document) != ZATHURA_PLUGIN_ERROR_OK) {
girara_error("could not open file\n"); girara_error("could not open file\n");
goto error_free; goto error_free;
} }