CVSROOT: /cvs Module name: src Changes by: [email protected] 2016/09/07 05:42:01
Modified files:
usr.bin/mg : buffer.c
Log message:
Source Joachim Nilsson:
Found by Coverity Scan. The popbuf() function iterated over a list to
find a wp pointer, then sent it to showbuffer() which immediately went
ahead and dereferenced it. This patch simply adds a NULL pointer check
before calling showbuffer(), if NULL then just return NULL to callee.
ok awolk@ millert@
