diff -r ecb9c2b70b0f src/memline.c
--- a/src/memline.c	Fri May 21 13:08:58 2010 +0200
+++ b/src/memline.c	Tue May 25 12:06:58 2010 -0400
@@ -1404,15 +1404,20 @@
     int		i;
     char_u	*dirp;
     char_u	*dir_name;
-    char_u	*fname_res = *fname;
+    char_u	*fname_res = NULL;
 #ifdef HAVE_READLINK
     char_u	fname_buf[MAXPATHL];
+#endif
 
     /* Expand symlink in the file name, because the swap file is created with
      * the actual file instead of with the symlink. */
-    if (resolve_symlink(*fname, fname_buf) == OK)
-	fname_res = fname_buf;
+    if (fname != NULL)
+#ifdef HAVE_READLINK
+	if (resolve_symlink(*fname, fname_buf) == OK)
+	    fname_res = fname_buf;
+	else
 #endif
+	    fname_res = *fname;
 
     if (list)
     {
