]> andersk Git - openssh.git/blobdiff - ssh-keygen.c
- stevesk@cvs.openbsd.org 2007/01/03 00:53:38
[openssh.git] / ssh-keygen.c
index dfa1166c255cab0cb409675f95eb122e3f32934d..f43b12493d15b6c2df0c1057d37215a80ba47d59 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.156 2006/11/14 19:41:04 deraadt Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.157 2007/01/03 00:53:38 stevesk Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -346,9 +346,8 @@ get_line(FILE *fp, char *line, size_t len)
                line[pos++] = c;
                line[pos] = '\0';
        }
-       if (c == EOF)
-               return -1;
-       return pos;
+       /* We reached EOF */
+       return -1;
 }
 
 static void
This page took 0.031541 seconds and 4 git commands to generate.