|
Lines 338-344
Link Here
|
| 338 |
if (*cp == '\"' || *cp == '\'') { |
338 |
if (*cp == '\"' || *cp == '\'') { |
| 339 |
quot = *cp++; |
339 |
quot = *cp++; |
| 340 |
|
340 |
|
| 341 |
end = strchr(cp, quot); |
341 |
/* This block finds the 'bare' quote that |
|
|
342 |
denotes the end of the filename and checks |
| 343 |
to make sure that it's not an escaped quote |
| 344 |
that should be part of the filename */ |
| 345 |
end = cp; |
| 346 |
while(end != NULL && *end != quot){ |
| 347 |
if(*end == '\\') end++; |
| 348 |
end++; |
| 349 |
} |
| 350 |
|
| 342 |
if (end == NULL) { |
351 |
if (end == NULL) { |
| 343 |
error("Unterminated quote"); |
352 |
error("Unterminated quote"); |
| 344 |
goto fail; |
353 |
goto fail; |