Index: gnome-screenshot-3.4.1/src/screenshot-filename-builder.c
===================================================================
--- gnome-screenshot-3.4.1.orig/src/screenshot-filename-builder.c	2012-04-17 01:25:49.000000000 +0700
+++ gnome-screenshot-3.4.1/src/screenshot-filename-builder.c	2012-08-11 21:15:55.055680259 +0700
@@ -86,9 +86,14 @@
 static gchar *
 get_default_screenshot_dir (void)
 {
+  const gchar *pictures_dir;
   gchar *shot_dir;
 
-  shot_dir = g_strconcat ("file://", g_get_user_special_dir (G_USER_DIRECTORY_PICTURES), NULL);
+  pictures_dir = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES);
+  if (pictures_dir == NULL)
+    return NULL;
+
+  shot_dir = g_strconcat ("file://", pictures_dir, NULL);
 
   return shot_dir;
 }
