diff options
| author | Sergio Luis O. B. Correia <sergio@larces.uece.br> | 2009-11-23 16:00:26 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-11-23 16:00:26 -0800 |
| commit | 2b1133ff863172d669defea18761a84e4a343d80 (patch) | |
| tree | a7ae9dadec384481f792b4512c3ada933ebb553e /src | |
| parent | edf7485a6ea5464c521711deba274a5bb44df75c (diff) | |
| download | go-2b1133ff863172d669defea18761a84e4a343d80.tar.xz | |
cmd/cc: change getquoted() to accept whitespaces.
getquoted() currently checks for whitespaces and returns nil
if it finds one. this prevents us from having go in a path
containing whitespaces, as the #pragma dynld directives are
processed through the said function.
this commit makes getquoted() accept whitespaces, and this is
also needed for solving issue #115.
R=rsc
https://golang.org/cl/157066
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/cc/dpchk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/cc/dpchk.c b/src/cmd/cc/dpchk.c index 5dcc82f2b7..452f39f09b 100644 --- a/src/cmd/cc/dpchk.c +++ b/src/cmd/cc/dpchk.c @@ -214,7 +214,7 @@ getquoted(void) fmtstrinit(&fmt); for(;;) { r = getr(); - if(r == ' ' || r == '\n') { + if(r == '\n') { free(fmtstrflush(&fmt)); return nil; } |
