mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 08:18:03 +02:00
std-aux: minor cleanup in nm_steal_int() to compare number explicitly against zero
This commit is contained in:
parent
6b3862e39a
commit
a3ca768fbc
1 changed files with 9 additions and 9 deletions
|
|
@ -1012,7 +1012,7 @@ _nm_auto_fclose(FILE **pfd)
|
||||||
typeof(p_val) const _p_val = (p_val); \
|
typeof(p_val) const _p_val = (p_val); \
|
||||||
typeof(*_p_val) _val = 0; \
|
typeof(*_p_val) _val = 0; \
|
||||||
\
|
\
|
||||||
if (_p_val && (_val = *_p_val)) { \
|
if (_p_val && ((_val = *_p_val) != 0)) { \
|
||||||
*_p_val = 0; \
|
*_p_val = 0; \
|
||||||
} \
|
} \
|
||||||
_val; \
|
_val; \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue