util/disk_cache: fix bug with deleting old cache dirs
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 22 Feb 2017 03:16:04 +0000 (14:16 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 22 Feb 2017 22:20:22 +0000 (09:20 +1100)
commitd258055c8bcb1bd8438b4c28134813a4f0620f98
tree97adf67b722b083093316cf88d0b9624368c0164
parent8e03250fcf4fc5de31e92ca4919959d932888a69
util/disk_cache: fix bug with deleting old cache dirs

If there was more than a single directory in the .cache/mesa dir
then it would only remove one (or none) of the directories.

Apparently Valgrind was also reporting:
Conditional jump or move depends on uninitialised value

Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/util/disk_cache.c