[Mesa-dev] [PATCH 5/7] glsl: Make cache directory if it does not already exist

Matt Turner mattst88 at gmail.com
Wed Feb 4 16:16:49 PST 2015


On Wed, Feb 4, 2015 at 1:52 PM, Carl Worth <cworth at cworth.org> wrote:
> -   snprintf(cache->path, sizeof cache->path,
> -            "%s/.cache/mesa", pwd.pw_dir);
> +   cache->path = strdup(path);
> +   if (cache->path == NULL) {
> +      free (cache);

No space after the function name.

> +      cache = NULL;
> +      goto done;
> +   }


More information about the mesa-dev mailing list