From: Karl Heuer Date: Wed, 15 Apr 1998 06:12:48 +0000 (+0000) Subject: (file_name_as_directory): For empty arg, return `./'. X-Git-Tag: emacs-20.3~1532 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=154a307db33a39cca1aa7dd3718c2eb713660aa7;p=emacs.git (file_name_as_directory): For empty arg, return `./'. --- diff --git a/src/fileio.c b/src/fileio.c index d49d107b9f4..25f4ea6185a 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -484,8 +484,9 @@ file_name_as_directory (out, in) if (size < 0) { - out[0] = '/'; - out[1] = 0; + out[0] = '.'; + out[1] = '/'; + out[2] = 0; return out; }