summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/debug2html.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/utils/debug2html.c b/source3/utils/debug2html.c
index 62ecacf7e8..ef7201168f 100644
--- a/source3/utils/debug2html.c
+++ b/source3/utils/debug2html.c
@@ -28,7 +28,7 @@
* does a decent job of converting Samba logs into HTML.
* -------------------------------------------------------------------------- **
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
* ========================================================================== **
*/
@@ -39,8 +39,8 @@
* Global values.
*/
-FILE *infile = stdin;
-FILE *outfile = stdout;
+FILE *infile;
+FILE *outfile;
/* -------------------------------------------------------------------------- **
* The size of the read buffer.
@@ -298,6 +298,9 @@ int main( int argc, char *argv[] )
if( argc > 3 )
usage();
+ infile = stdin;
+ outfile = stdout;
+
if( argc > 1 && 0 != strcmp( argv[1], "-" ) )
infile = carefull_fopen( argv[1], "r" );