From: j8takagi Date: Thu, 11 Feb 2010 14:21:24 +0000 (+0900) Subject: サーバーとマージ X-Git-Tag: v0.1~48 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1803bd560071fb724b2c7ff2f5f35fa5086d10a;p=YACASL2.git サーバーとマージ --- f1803bd560071fb724b2c7ff2f5f35fa5086d10a diff --cc src/token.c index 3ea2073,48ed6ec..b846c69 --- a/src/token.c +++ b/src/token.c @@@ -65,10 -57,9 +65,10 @@@ OPD *opdtok(const char *str /* 空白またはタブで区切られた1行から、トークンを取得 */ CMDLINE *linetok(const char *line) { - char *tokens, *p, *sepp; - bool quoting = false; + char *tokens, *p, *q, *sepp; + bool quote = false; CMDLINE *cmdl = malloc(sizeof(CMDLINE)); + if(line == NULL || strlen(line) == 0) { return NULL; }