Commit 2410222e35e94759dbe53439d20a245fc5a32a7f
Handle error from read_cmd_output() in execute()
Triggering this error is quite hard, just noticed the possibility while
looking at the code.
Author: xaizek
Author date (UTC): 2026-03-04 19:08
Committer name: xaizek
Committer date (UTC): 2026-03-04 19:08
Parent(s): b7b6d08e5e7cef2b5a383d3c1bcab40e59d84bb3
Signing key: 99DC5E4DB05F6BE2
Tree: 1d5903b4c64e5330fe91ce096ac4a1d06906e62c
| File src/builtin_functions.c changed (mode: 100644) (index 48e1f7b60..e823cf92e) |
| ... |
... |
execute_cmd(var_t cmd_arg, int interactive, int preserve_stdin) |
| 702 |
702 |
cmd_stream = read_cmd_output(cmd, preserve_stdin); |
cmd_stream = read_cmd_output(cmd, preserve_stdin); |
| 703 |
703 |
free(cmd); |
free(cmd); |
| 704 |
704 |
|
|
|
705 |
|
if(cmd_stream == NULL) |
|
706 |
|
{ |
|
707 |
|
return var_error(); |
|
708 |
|
} |
|
709 |
|
|
| 705 |
710 |
if(interactive) |
if(interactive) |
| 706 |
711 |
{ |
{ |
| 707 |
712 |
ui_cancellation_push_on(); |
ui_cancellation_push_on(); |