Просмотр исходного кода

Fix return type in wasm_loader_get_custom_section (#2794)

Should return NULL instead of false.
Huang Qi 2 лет назад
Родитель
Сommit
e8c8f7fca6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      core/iwasm/interpreter/wasm_loader.c

+ 1 - 1
core/iwasm/interpreter/wasm_loader.c

@@ -7026,7 +7026,7 @@ wasm_loader_get_custom_section(WASMModule *module, const char *name,
         section = section->next;
     }
 
-    return false;
+    return NULL;
 }
 #endif