diff options
| author | Linux Build Service Account <lnxbuild@quicinc.com> | 2018-01-24 20:36:45 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-01-24 20:36:44 -0800 |
| commit | 41a986188bbbcf499a69546e7e54b507b9888d26 (patch) | |
| tree | 901cc82d6a4526f4409f54f9f2503d55e52868a6 /scripts | |
| parent | 963910a5efbd371ef0c995b72303b6220d504a52 (diff) | |
| parent | 8c8abdeafc8ce93c811773ba7d177d27015702aa (diff) | |
Merge "Merge android-4.4.112 (5f6325b) into msm-4.4"
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/genksyms/genksyms.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/genksyms/genksyms.c b/scripts/genksyms/genksyms.c index 88632df4381b..dafaf96e0a34 100644 --- a/scripts/genksyms/genksyms.c +++ b/scripts/genksyms/genksyms.c @@ -423,13 +423,15 @@ static struct string_list *read_node(FILE *f) struct string_list node = { .string = buffer, .tag = SYM_NORMAL }; - int c; + int c, in_string = 0; while ((c = fgetc(f)) != EOF) { - if (c == ' ') { + if (!in_string && c == ' ') { if (node.string == buffer) continue; break; + } else if (c == '"') { + in_string = !in_string; } else if (c == '\n') { if (node.string == buffer) return NULL; |
