]> git.eshelyaron.com Git - emacs.git/commit
Pacify GCC 12 -Wanalyzer-use-of-uninitialized-value
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 31 May 2022 08:19:31 +0000 (01:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 31 May 2022 08:26:47 +0000 (01:26 -0700)
commita1c19dfca4b1e0b84a958aee33c8212dc69cd2cb
treec89d553de7ec5710a8bde01b5fd2682b331f0cab
parentd94890404e91d5ba50afaa4bc27b9c655dbed5f1
Pacify GCC 12 -Wanalyzer-use-of-uninitialized-value

* lib-src/etags.c (readline_internal): Do not copy a pointer to
freed storage, as that has undefined behavior even if the pointer
is not dereferenced.
(relative_filename): Avoid a backward scan by remembering where
the last slash was.  This is a bit faster, and pacifies a GCC
false alarm.
lib-src/etags.c