Commit e42fef7
committed
Fix comparison between pointer and zero character constant.
Fix #44
See,
libzbxsystemd.c: In function ‘SYSTEMD_UNIT_DISCOVERY’:
libzbxsystemd.c:214:35: warning: comparison between pointer and zero character constant [-Wpointer-compare]
214 | if(NULL != filter || '\0' != filter)
| ^~
libzbxsystemd.c:214:38: note: did you mean to dereference the pointer?
214 | if(NULL != filter || '\0' != filter)
|
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>1 parent c6c2c26 commit e42fef7
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
0 commit comments