From 75bfa9a6c058124a650013205ef2c3e7d79aa718 Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Tue, 20 Dec 2011 10:27:55 -0500 Subject: skip blank lines --- sshfs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sshfs.c b/sshfs.c index 2ba4659..ef2208d 100644 --- a/sshfs.c +++ b/sshfs.c @@ -3556,6 +3556,10 @@ static void read_id_map(char *file, uint32_t *(*map_fn)(char *), uint32_t remote_id; char *name; + /* skip blank lines */ + if (line[0] == '\n' || line[0] == '\0') + continue; + parse_idmap_line(line, file, lineno, &remote_id, &name, feof(fp)); uint32_t *local_id = map_fn(name); -- cgit v1.2.3