diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-07-20 04:51:35 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-07-20 05:01:43 -0300 |
commit | 142f55107064d4cbd4e70ae625e909caa8d13952 (patch) | |
tree | 54db786d18ef6ef3a66a66727d8be4f4daf014c6 /src/zsh_completion/_firejail.in | |
parent | modif: drop deprecated 'shell' option references (#5894) (diff) | |
download | firejail-142f55107064d4cbd4e70ae625e909caa8d13952.tar.gz firejail-142f55107064d4cbd4e70ae625e909caa8d13952.tar.zst firejail-142f55107064d4cbd4e70ae625e909caa8d13952.zip |
hostnames.c: fix scan-build warning
This is breaking scan-build in CI[1]:
/usr/share/clang/scan-build-14/bin/../libexec/ccc-analyzer [...] -c hostnames.c -o hostnames.o
hostnames.c:59:10: warning: Null pointer passed to 1st parameter expecting 'nonnull' [core.NonNullParamChecker]
return strdup(rv);
^~~~~~~~~~
1 warning generated.
Likely caused by commit d2802ce60 ("fnettrace cleanup", 2023-07-15).
This also fixes a memory leak of `cmd`.
[1] https://github.com/netblue30/firejail/actions/runs/5568460702/jobs/10171098449
Diffstat (limited to 'src/zsh_completion/_firejail.in')
0 files changed, 0 insertions, 0 deletions