Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b296a488 authored by Tom Cherry's avatar Tom Cherry Committed by android-build-merger
Browse files

Merge "init: fix the parse error when meeting escape characters" am: 78ea17a6

am: 117ea4f4

Change-Id: I5bce72b6aa8b70a1687ddfc952ab959374b5e4c9
parents 5e77a08f 117ea4f4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -85,15 +85,19 @@ textresume:
                goto textdone;
            case 'n':
                *s++ = '\n';
                x++;
                break;
            case 'r':
                *s++ = '\r';
                x++;
                break;
            case 't':
                *s++ = '\t';
                x++;
                break;
            case '\\':
                *s++ = '\\';
                x++;
                break;
            case '\r':
                    /* \ <cr> <lf> -> line continuation */
@@ -101,6 +105,7 @@ textresume:
                    x++;
                    continue;
                }
                x++;
            case '\n':
                    /* \ <lf> -> line continuation */
                state->line++;