diff --git a/ChangeLog b/ChangeLog
index 863c1fbfbc8c56ca7820ec7dccbcf2549dc49a70..968de818d7b822edffbed8c9e4c94cad6a286bf5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2009-11-26 Chris Allegretta <chrisa@asty.org>
 	* winio.c (edit_scroll): Adjust for long lines when scrolling.
+	* rcfile.c (parse_rcfile), initialize size argument to getline(), fixes crash on FreeBSD 
+	  reported by Eitan Adler <eitanadlerlist@gmail.com>.
 
 2009-11-26 Jordi Mallach <jordi@gnu.org>
 	* doc/man/*: Update all man pages to escape unescapred hyphens.
diff --git a/src/rcfile.c b/src/rcfile.c
index 2bd67a6724e8fe4e8735c065554a5b3695e38797..4aa5894f1c3a3f629a0fe22b2b72de5d96b10b47 100644
--- a/src/rcfile.c
+++ b/src/rcfile.c
@@ -892,7 +892,7 @@ void parse_rcfile(FILE *rcstream
 {
     char *buf = NULL;
     ssize_t len;
-    size_t n;
+    size_t n = 0;
 
     while ((len = getline(&buf, &n, rcstream)) > 0) {
 	char *ptr, *keyword, *option;