Skip to content

Commit

Permalink
Fixed segfault on opening log file in append mode
Browse files Browse the repository at this point in the history
  • Loading branch information
James K. Lowden committed May 15, 2003
1 parent f3fd0ba commit a535985
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
Thu May 15 10:23:23 EDT 2003 JK Lowden <jklowden@schemamania.org>
* src/tds/util.c
- Fixed segfault on opening log file in append mode

Thu May 15 15:19:32 CET 2003 Frediano Ziglio <freddy77@angelfire.com>
* src/tds/locale.c: merged fix and cleanup from 0.62 branch

Expand Down
4 changes: 2 additions & 2 deletions src/tds/util.c
Expand Up @@ -58,7 +58,7 @@
#include <dmalloc.h>
#endif

static char software_version[] = "$Id: util.c,v 1.32 2002-12-31 22:41:22 jklowden Exp $";
static char software_version[] = "$Id: util.c,v 1.32.2.1 2003-05-15 14:28:53 jklowden Exp $";
static void *no_unused_var_warn[] = { software_version, no_unused_var_warn };

/* for now all messages go to the log */
Expand Down Expand Up @@ -198,8 +198,8 @@ tdsdump_open(const char *filename)
result = 1;
}
if (result == 1) {
fprintf(dumpfile, "Starting log file with debug level %d.\n", tds_g_debug_lvl);
tdsdump_on();
tdsdump_log(tds_g_debug_lvl, "Starting log file for FreeTDS %s with debug level %d.\n", VERSION, tds_g_debug_lvl);
}
return result;
} /* tdsdump_open() */
Expand Down

0 comments on commit a535985

Please sign in to comment.