]> git.eshelyaron.com Git - emacs.git/commit
Pacify -Wanalyzer-null-argument in lisp_malloc
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 3 Oct 2021 23:37:13 +0000 (16:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 3 Oct 2021 23:55:17 +0000 (16:55 -0700)
commitfd274d7d24ec35d64974b007cfe881c0e07edf9d
treedde456735d2dcbc8818245d97df23ab89678681f
parentcc3fc94f09332e5cca28fea1f19a93c8d45fd0f8
Pacify -Wanalyzer-null-argument in lisp_malloc

* src/alloc.c (lisp_malloc): Document that NBYTES must be
positive, and omit a needless runtime check.  This pacifies a
false alarm with gcc 11.2.1 -Wanalyzer-possible-null-dereference.
src/alloc.c