diff options
Diffstat (limited to 'source/torture')
-rw-r--r-- | source/torture/rpctorture.c | 2 | ||||
-rw-r--r-- | source/torture/vfstest.c | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/source/torture/rpctorture.c b/source/torture/rpctorture.c index 8db58014b71..f0990e6dee4 100644 --- a/source/torture/rpctorture.c +++ b/source/torture/rpctorture.c @@ -23,8 +23,6 @@ #define REGISTER 0 #endif -extern file_info def_finfo; - #define CNV_LANG(s) dos2unix_format(s,False) #define CNV_INPUT(s) unix2dos_format(s,True) diff --git a/source/torture/vfstest.c b/source/torture/vfstest.c index 5f673be6dfe..04bcfab3e7a 100644 --- a/source/torture/vfstest.c +++ b/source/torture/vfstest.c @@ -579,15 +579,18 @@ int main(int argc, char *argv[]) /* Loop around accepting commands */ while(1) { - char *line; + char *line = NULL; line = smb_readline("vfstest $> ", NULL, completion_fn); - if (line == NULL) + if (line == NULL) { break; + } - if (line[0] != '\n') + if (line[0] != '\n') { process_cmd(&vfs, line); + } + SAFE_FREE(line); } conn_free(vfs.conn); |