Index: src/logsurfer.c --- src/logsurfer.c.orig 2002-08-29 13:36:12 +0200 +++ src/logsurfer.c 2004-12-28 15:16:01 +0100 @@ -388,6 +388,7 @@ (void) fprintf(stderr, "unable to allocate memory for logline_buffer\n"); exit(99); } + logline_buffer[0]='\0'; while ( (opt = getopt(argc, argv, "fc:d:l:p:r:s")) != EOF ) switch(opt) {