Skip to content

Commit bd7ffab

Browse files
committed
Fix a few build warnings in py loader
1 parent 74603e0 commit bd7ffab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/python/python_loader.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ int py_apm_load_cmd(struct slash *slash) {
506506
}
507507

508508
static wchar_t **handle_py_argv(char **args, int argc) {
509-
wchar_t **res = calloc(sizeof(wchar_t *), argc);
509+
wchar_t **res = calloc(argc, sizeof(wchar_t *));
510510
if (res) {
511511
for (int i = 0; i < argc; i++) {
512512
res[i] = Py_DecodeLocale(args[i], NULL);
@@ -619,5 +619,5 @@ static int python_slash(struct slash *slash) {
619619
"or execute the script in given file.\n"\
620620
"This allows you to run pretty much any Python code, particularly code using PyCSH which allows for interacting\n"\
621621
"with CSP nodes.\n\nUse \"Control-D\" to exit the interpreter and return to CSH."
622-
slash_command_completer(python, python_slash, slash_path_completer, _PYTHON_ARGS, _PYTHON_HELP);
623-
slash_command_completer(python3, python_slash, slash_path_completer, _PYTHON_ARGS, _PYTHON_HELP); // Alias
622+
slash_command_completer(python, python_slash, slash_path_completer, _PYTHON_ARGS, _PYTHON_HELP)
623+
slash_command_completer(python3, python_slash, slash_path_completer, _PYTHON_ARGS, _PYTHON_HELP) // Alias

0 commit comments

Comments
 (0)