]> source.dussan.org Git - rspamd.git/commit
Update local_scan.c 796/head
authorBryon Gloden, CISSPĀ® <cissp@bryongloden.com>
Tue, 2 Aug 2016 21:49:49 +0000 (17:49 -0400)
committerGitHub <noreply@github.com>
Tue, 2 Aug 2016 21:49:49 +0000 (17:49 -0400)
commit8086172ad1e4d4e138e2ba80056b8b5835d95a60
tree9f088fcdf97e31b8807f74fb250086d335e1fe2f
parent0ef106e8a3a39c3dbd8e2cc5f24fff7e0e23ac40
Update local_scan.c

[../rspamd-master/contrib/exim/local_scan.c:630]: (error) Uninitialized variable: rej

It's always good to initialize integer variables, at least to 0, because if you try to retrieve its value before it gets assigned any actual (non-garbage) value, then it results in undefined behavior.

Found by https://github.com/bryongloden/cppcheck
contrib/exim/local_scan.c