diff options
-rw-r--r-- | apps/open_plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/open_plugin.c b/apps/open_plugin.c index f7f55d58cd..fad528e215 100644 --- a/apps/open_plugin.c +++ b/apps/open_plugin.c | |||
@@ -222,6 +222,8 @@ static int op_get_entry(uint32_t hash, int32_t lang_id, | |||
222 | logf("OP get_entry hash: %x lang id: %d db: %s", hash, lang_id, dat_file); | 222 | logf("OP get_entry hash: %x lang id: %d db: %s", hash, lang_id, dat_file); |
223 | 223 | ||
224 | int fd = open(dat_file, O_RDONLY); | 224 | int fd = open(dat_file, O_RDONLY); |
225 | if(fd < 0) | ||
226 | return OPEN_PLUGIN_NOT_FOUND; | ||
225 | opret = op_find_entry(fd, entry, hash, lang_id); | 227 | opret = op_find_entry(fd, entry, hash, lang_id); |
226 | close(fd); | 228 | close(fd); |
227 | } | 229 | } |