don't loop indefinitly if a plugin directy doesn't exist

This commit is contained in:
Sebastian Ramacher 2011-11-22 18:57:09 +01:00
parent d613fd41ac
commit 298daab365

View file

@ -42,6 +42,7 @@ zathura_document_plugins_load(zathura_t* zathura)
DIR* dir = opendir(plugindir);
if (dir == NULL) {
girara_error("could not open plugin directory: %s", plugindir);
girara_list_iterator_next(iter);
continue;
}