halapi: common: Fix wrong operation 26/270226/2
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 27 Jan 2022 01:21:42 +0000 (10:21 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 27 Jan 2022 01:22:11 +0000 (10:22 +0900)
Reported-by: Seung-Woo Kim sw0312.kim@samsung.com
Change-Id: I9a33513c00f772ce7f431331817199440181d83e
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/hal-api-conf.c

index d86f03a..7bc5d55 100644 (file)
@@ -72,7 +72,7 @@ static struct __hal_module_info* _get_module_info_with_library_name(enum hal_mod
        char *library_name_prefix = NULL;
        int ret;
 
-       if (!_module_hash | !library_name)
+       if (!_module_hash || !library_name)
                return NULL;
 
        tmp_info = _get_module_info(module);