CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2016/09/05 02:10:58
Modified files:
usr.bin/mg : undo.c
Log message:
Initialize stack variables to zero before memmove().
Coverity Scan reported these two stack variables as uninitialized, in
particular the .r_lineno struct member was uninitialized. This patch
clears the 'struct region' rather than setting .r_lineno because if
any more struct members are added in the future the clear will cover
them too.
Source Joachim Nilsson. ok tom@ millert@