]> git.wh0rd.org Git - nano.git/commitdiff
Make nano at least not crash on weird binary data
authorChris Allegretta <chrisa@asty.org>
Sun, 26 Nov 2000 02:09:53 +0000 (02:09 +0000)
committerChris Allegretta <chrisa@asty.org>
Sun, 26 Nov 2000 02:09:53 +0000 (02:09 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@326 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

files.c
po/nano.pot

diff --git a/files.c b/files.c
index 2d17bf4e21bfdf8a6e786e2018c8f3e12899d7d7..1f72d3f9f345ab9020b9f33fd455bde90ee91484 100644 (file)
--- a/files.c
+++ b/files.c
@@ -179,7 +179,7 @@ int read_file(int fd, char *filename)
        buf[0] = 0;
     }
     /* Did we even GET a file? */
-    if (totsize == 0) {
+    if (totsize == 0 || fileptr == NULL) {
        new_file();
        statusbar(_("Read %d lines"), num_lines);
        return 1;
index 70e1f56c25ec212d5ef47cf8b18c114580afd063..a4389ee65202ae402acb1b35f07df27a48e91c2c 100644 (file)
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2000-11-25 15:18-0500\n"
+"POT-Creation-Date: 2000-11-25 21:08-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"