diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2024-01-21 16:07:52 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-09-08 23:59:32 +0200 |
commit | bafa5e5de0fa1f7e718ebb26d992bfa9abb6711b (patch) | |
tree | 9aec0dd01bb5ff8d88bc2c21cdc25fa730f829f7 /console-client | |
parent | 5d29fe3f8f7ddb0feb7b961c69fb3b1ed9fdc3f0 (diff) | |
download | hurd-bafa5e5de0fa1f7e718ebb26d992bfa9abb6711b.tar.gz hurd-bafa5e5de0fa1f7e718ebb26d992bfa9abb6711b.tar.bz2 hurd-bafa5e5de0fa1f7e718ebb26d992bfa9abb6711b.zip |
Restructure argument setup in hashbang
We do a few things here:
- Move search_path to the scope where it is used to make dependencies
more clear.
- Have a separate variable to store the file name we eventually need to
free and move the free logic to happen in a single place.
Both of this allows us to still free the name even if a fault is generated and
also avoids a compiler warning as we try to assign a 'const char*'
file_name_exec to a 'char *', making it more clear to what exactly we
need to free. I also believe 'error' in line 245 was not initialized in
case 'file_name_exec' is used and this fixes that too.
Message-ID: <20240121210757.1900938-1-flaviocruz@gmail.com>
Diffstat (limited to 'console-client')
0 files changed, 0 insertions, 0 deletions