diff options
author | Haru <haru@dotalux.com> | 2015-09-18 17:48:20 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-09-18 17:48:20 +0200 |
commit | 58e3177021890543faf6363fcb3326617100571d (patch) | |
tree | 15b14edc6937bcb50d5ff98893cc48de02aca99b /src/common/HPM.c | |
parent | 442a306a60d4529f5cae70c0a659b4bc31d2f07b (diff) | |
download | hercules-58e3177021890543faf6363fcb3326617100571d.tar.gz hercules-58e3177021890543faf6363fcb3326617100571d.tar.bz2 hercules-58e3177021890543faf6363fcb3326617100571d.tar.xz hercules-58e3177021890543faf6363fcb3326617100571d.zip |
Clarified the intent of several assignments inside conditional expressions
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/HPM.c')
-rw-r--r-- | src/common/HPM.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/HPM.c b/src/common/HPM.c index 6d68d6ed6..2277b9c71 100644 --- a/src/common/HPM.c +++ b/src/common/HPM.c @@ -560,8 +560,8 @@ void hplugins_config_read(void) { if ((plugin = HPM->load(filename))) { const char * (*func)(bool *fr); bool (*addhook_sub) (enum HPluginHookType type, const char *target, void *hook, unsigned int pID); - if ((func = plugin_import(plugin->dll, "Hooked",const char * (*)(bool *))) - && (addhook_sub = plugin_import(plugin->dll, "HPM_Plugin_AddHook",bool (*)(enum HPluginHookType, const char *, void *, unsigned int)))) { + if ((func = plugin_import(plugin->dll, "Hooked",const char * (*)(bool *))) != NULL + && (addhook_sub = plugin_import(plugin->dll, "HPM_Plugin_AddHook",bool (*)(enum HPluginHookType, const char *, void *, unsigned int))) != NULL) { const char *failed = func(&HPM->force_return); if (failed) { ShowError("HPM: failed to retrieve '%s' for '"CL_WHITE"%s"CL_RESET"'!\n", failed, plugin_name); |