patacongo commented on pull request #1597: URL: https://github.com/apache/incubator-nuttx/pull/1597#issuecomment-674864970
Like @davids5 , I don't see any value to this change. But what is worse is that it is unconditional. `argc `will be bumped up and a string "" will be passed to every start-up task. This is an unacceptable waste of stack space in my opinion. That will consume a only couple of dozen bytes of stack. That is not a lot but is a complete waste of RAM. Consider at least making this seemingly pointless change conditional via `Kconfig`. The easiest way would be to remove the `default ""` line from the Kconfig. Then if `CONFIG_INIT_ARG `is not selected, it will be undefined and you can test with `#if defined(CONFIG_INIT_ARG)` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
