pipe-loader: check if winsys.name is non-null prior to strcmp
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 23 Nov 2015 20:26:55 +0000 (20:26 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 29 Nov 2015 14:38:22 +0000 (14:38 +0000)
commit5f92906b876d5463efba3ffb19c1de0dcb3c755f
treeb0b0e03fa79b1cee52e357bab53eedefffb5db0f
parent866a1f7fddcf38c0cd40fc7b9509e562353e1acc
pipe-loader: check if winsys.name is non-null prior to strcmp

In theory this wouldn't be an issue, as we'll find the correct name and
break out of the loop before we hit the sentinel.

Let's fix this and avoid issues in the future.

Spotted by Coverity (CID 133986913398701339871)

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c