On 9 February 2017 at 11:42, Timothy Arceri <[email protected]> wrote:

Fixes: f3d911463e8 "util/disk_cache: stop using ralloc_asprintf() unnecessarily"
Reviewed-by: Emil Velikov <[email protected]>

>     _mesa_sha1_format(buf, key);
> -   asprintf(&filename, "%s/%c%c/%s", cache->path, buf[0], buf[1], buf + 2);
> +   if (asprintf(&filename, "%s/%c%c/%s", cache->path, buf[0],
We have three separate places that do %s/%c%c. Worth unifying - be
that a macro, static inline, other ?

-Emil
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to