From 1ac41d2ae2fb4b9c2d02855a7bf814fbe03d76a7 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(+) (limited to 'sshfs.c') diff --git a/sshfs.c b/sshfs.c index 08e9307..a4cc1a7 100644 --- a/sshfs.c +++ b/sshfs.c @@ -3691,6 +3691,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