diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2012-06-10 17:15:47 +0200 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2012-06-10 17:15:47 +0200 |
commit | d023bf0f5dedb67caf9229e3ddcbb5a9fea420ce (patch) | |
tree | 3562a23f7eb6009e161cbc8aae943de33d168b91 /apps/filetypes.c | |
parent | 900cf6d52bd806bd54ad2118e245cd3465ea6815 (diff) |
Fix checks on buflib allocated handles (0 is not a valid handle value)
Change-Id: I8fdc5a59a5062f40a431cd49971390e21631b8ec
Diffstat (limited to 'apps/filetypes.c')
-rw-r--r-- | apps/filetypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c index 49196d40ed..b765e7a3b0 100644 --- a/apps/filetypes.c +++ b/apps/filetypes.c @@ -344,7 +344,7 @@ void filetype_init(void) strdup_bufsize = filesize(fd); strdup_handle = core_alloc_ex("filetypes", strdup_bufsize, &ops); - if (strdup_handle < 0) + if (strdup_handle <= 0) { close(fd); return; |