mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-04 06:36:09 +00:00
[Core] scan-build: Argument with 'nonnull' attribute passed null in switch_loadable_module_load_module_ex()
This commit is contained in:
parent
1b048a8a97
commit
92a55cf85a
@ -1843,11 +1843,11 @@ static switch_status_t switch_loadable_module_load_module_ex(const char *dir, co
|
|||||||
if ((dot = strchr(file, '.'))) {
|
if ((dot = strchr(file, '.'))) {
|
||||||
*dot = '\0';
|
*dot = '\0';
|
||||||
}
|
}
|
||||||
len = strlen(dir);
|
len = strlen(switch_str_nil(dir));
|
||||||
len += strlen(file);
|
len += strlen(file);
|
||||||
len += 8;
|
len += 8;
|
||||||
path = (char *) switch_core_alloc(loadable_modules.pool, len);
|
path = (char *) switch_core_alloc(loadable_modules.pool, len);
|
||||||
switch_snprintf(path, len, "%s%s%s%s", dir, SWITCH_PATH_SEPARATOR, file, ext);
|
switch_snprintf(path, len, "%s%s%s%s", switch_str_nil(dir), SWITCH_PATH_SEPARATOR, file, ext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user