]> code.delx.au - gnu-emacs/blobdiff - src/xrdb.c
(regi-interpret): Use `mapc' rather than `mapcar'.
[gnu-emacs] / src / xrdb.c
index 0a138687d7bfa4bb639d73e9199831220ec1fda1..79f1da81a413729e30ac1ec0da79e969b3b183d3 100644 (file)
@@ -1,12 +1,12 @@
 /* Deal with the X Resource Manager.
    Copyright (C) 1990, 1993, 1994, 2000, 2001, 2002, 2003, 2004,
-                 2005 Free Software Foundation, Inc.
+                 2005, 2006, 2007 Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
 GNU Emacs is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
+the Free Software Foundation; either version 3, or (at your option)
 any later version.
 
 GNU Emacs is distributed in the hope that it will be useful,
@@ -315,7 +315,7 @@ gethomedir ()
     }
 
   if (ptr == NULL)
-    return "/";
+    return xstrdup ("/");
 
   copy = (char *) malloc (strlen (ptr) + 2);
   strcpy (copy, ptr);