Commit 6d4cdc83 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

check for swap_dir != NULL before accessing it.

2008-02-19  Sven Neumann  <sven@gimp.org>

	* gegl/buffer/gegl-buffer-allocator.c (gegl_swap_dir): check for
	swap_dir != NULL before accessing it.

svn path=/trunk/; revision=2063
parent 8cbb3949
2008-02-19 Sven Neumann <sven@gimp.org>
* gegl/buffer/gegl-buffer-allocator.c (gegl_swap_dir): check for
swap_dir != NULL before accessing it.
2008-02-19 Sven Neumann <sven@gimp.org>
* gegl/module/gegldatafiles.c
......
......@@ -136,7 +136,7 @@ gegl_swap_dir (void)
{
static gchar *swapdir = "";
if (swapdir[0] == '\0')
if (swapdir && swapdir[0] == '\0')
{
if (g_getenv ("GEGL_SWAP"))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment