mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
Clear command line arguments after parsing
Fixes #442 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -623,6 +623,12 @@ int main(int argc, char *argv[])
|
|||||||
*/
|
*/
|
||||||
conf_parse_cmdline(argc, argv);
|
conf_parse_cmdline(argc, argv);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Clear command line arguments for ps display, issue #442
|
||||||
|
*/
|
||||||
|
for (int i = 1; i < argc; i++)
|
||||||
|
memset(argv[i], 0, strlen(argv[i]));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Figure out system console(s) and call log_init() to set
|
* Figure out system console(s) and call log_init() to set
|
||||||
* correct log level, possibly finit.debug enabled.
|
* correct log level, possibly finit.debug enabled.
|
||||||
|
|||||||
Reference in New Issue
Block a user