summaryrefslogtreecommitdiffstats
path: root/sys/dev/i2c/ihidev.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2018-09-19 18:55:33 +0000
committermillert <millert@openbsd.org>2018-09-19 18:55:33 +0000
commit8afed9311abd0daff206fc8ca25a786af2ea57ce (patch)
tree58940b5841c5feca3a5773e3ad12afae1e09a6d0 /sys/dev/i2c/ihidev.c
parentFix last commit, I made one of the changes to the wrong line. (diff)
downloadwireguard-openbsd-8afed9311abd0daff206fc8ca25a786af2ea57ce.tar.xz
wireguard-openbsd-8afed9311abd0daff206fc8ca25a786af2ea57ce.zip
If getcwd() fails in dinit(), the stat buffer 'swd' is used
uninitialized by the else clause. Since it is used in both clauses we should perform the stat before the if(). However, fixing this causes 'cp' to be unitialized in some case so initialize cp to NULL and move the "cp == NULL" check out of the first if() clause now that it can be true in either case. OK miko@ deraadt@
Diffstat (limited to 'sys/dev/i2c/ihidev.c')
0 files changed, 0 insertions, 0 deletions