]> git.sur5r.net Git - i3/i3/commitdiff
Avoid use of uninitialized in init_dpi_end 2875/head
authorTheo Buehler <tb@openbsd.org>
Wed, 23 Aug 2017 13:48:58 +0000 (15:48 +0200)
committerTheo Buehler <tb@openbsd.org>
Wed, 23 Aug 2017 13:48:58 +0000 (15:48 +0200)
If conn == NULL or display == NULL, init_dpi() jumps to init_dpi_end
before (declaring and) initializing resource. In init_dpi_end, there
is a free(resource) call conditionally on resource != NULL, so this
may lead to a bogus free. Found by clang -Wsometimes-uninitialized.


No differences found