leading spaces and blank lines currently cause parse errors.
This commit fixes the parser to be more lenient.
https://bugs.freedesktop.org/show_bug.cgi?id=67006
#include "ply-key-file.h"
#include <assert.h>
+#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
key = NULL;
value = NULL;
- first_byte = fgetc (key_file->fp);
+ do
+ {
+ first_byte = fgetc (key_file->fp);
+ }
+ while (isspace (first_byte));
+
if (first_byte == '#')
{
char *line_to_toss;