Commit 609d0dca authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

get ftdump interactive mode working

git-svn-id: file:///svn/toku/tokudb@49645 c7de825b-a66e-492c-adef-691d508d4ae1
parent eaea84bf
...@@ -441,12 +441,11 @@ readline (char *line, int maxline) { ...@@ -441,12 +441,11 @@ readline (char *line, int maxline) {
static int static int
split_fields (char *line, char *fields[], int maxfields) { split_fields (char *line, char *fields[], int maxfields) {
int i; int i;
for (i=0; i<maxfields; i++)
fields[i] = NULL;
for (i=0; i<maxfields; i++, line=NULL) { for (i=0; i<maxfields; i++, line=NULL) {
fields[i] = strtok(line, " "); fields[i] = strtok(line, " ");
if (fields[i] == NULL) { if (fields[i] == NULL) {
for (; i < maxfields; ++i) {
fields[i] = NULL;
}
break; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment