diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-01-23 22:44:18 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-01-26 10:47:56 +0100 |
commit | 6a55d10664840d794f364d2b97b6bca3bf800850 (patch) | |
tree | 9771a92f561cb4c17f024dc768eb4b3f0807c6d8 /lib.c | |
parent | 04fa2baba6d615c49cf3f77986595da2a7783899 (diff) |
lib: fix exists() error return value
The current implementation incorrectly returned `false` which got treated
as `NULL` instead of a boolean `false` value.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -445,7 +445,7 @@ uc_exists(uc_vm_t *vm, size_t nargs) char *k; if (ucv_type(obj) != UC_OBJECT) - return false; + return ucv_boolean_new(false); k = uc_cast_string(vm, &key, &freeable); |