diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-11-22 13:48:24 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-11-22 13:48:24 +0000 |
commit | 12cfb4f7ee29fd3646cc57e3fd35c4450e033dba (patch) | |
tree | ee6fa58bcbbfcfb74be4a6294004b9a6c0990a0b | |
parent | 9e1123debe5a3fcf3e1d706596f65fc4367658ba (diff) |
this fix seems to make the '305 306' test case combination to run ok finally!
-rw-r--r-- | tests/server/sws.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c index 11ad8a455..ee152ac9d 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -268,7 +268,7 @@ static int send_doc(int sock, int doc, int part_no) char *ptr; FILE *stream; char *cmd=NULL; - int cmdsize; + int cmdsize=0; char filename[256]; char partbuf[80]="data"; @@ -285,10 +285,8 @@ static int send_doc(int sock, int doc, int part_no) count = strlen(buffer); } else { - if(0 != part_no) { + if(0 != part_no) sprintf(partbuf, "data%d", part_no); - } - sprintf(filename, TEST_DATA_PATH, doc); |