diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2011-09-07 23:16:29 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2011-09-07 23:16:29 +0000 |
| commit | 5296af838c39b8b7c4b00a3c896345f9e0719dcf (patch) | |
| tree | e3e31a974f23bd4cd810c00b892c1eabaec4c676 /apps/filetypes.c | |
| parent | 6a989b8d4dec4750ad474598bd52897381d2f3cb (diff) | |
| download | rockbox-5296af838c39b8b7c4b00a3c896345f9e0719dcf.zip rockbox-5296af838c39b8b7c4b00a3c896345f9e0719dcf.tar.gz rockbox-5296af838c39b8b7c4b00a3c896345f9e0719dcf.tar.bz2 rockbox-5296af838c39b8b7c4b00a3c896345f9e0719dcf.tar.xz | |
Buflib: Clarification about invalid handles
* Enhance allocation function comments to better state the return value and what an invalid value is
* Change clients to check for "< 0" instead of "<= 0" or "== 0"
* Return -1 or -2 depending on the exact failure in buflib_alloc_ex.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30469 a1c6a512-1295-4272-9138-f99709370657
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 942ff32..8f2e912 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) return; read_builtin_types(); read_config(fd); |