This commit is contained in:
Brendan Eich 2009-01-25 14:04:53 -08:00
parent f4ec0e5fa0
commit e019755a59

View File

@ -380,6 +380,7 @@ Process(JSContext *cx, JSObject *obj, char *filename, JSBool forceTTY)
jsval result;
JSString *str;
char *buffer;
size_t size;
int lineno;
int startline;
FILE *file;
@ -439,8 +440,9 @@ Process(JSContext *cx, JSObject *obj, char *filename, JSBool forceTTY)
lineno = 1;
hitEOF = JS_FALSE;
buffer = NULL;
size = 0; /* assign here to avoid warnings */
do {
size_t len = 0, size = 0; /* initialize to avoid warnings */
size_t len = 0; /* initialize to avoid warnings */
/*
* Accumulate lines until we get a 'compilable unit' - one that either