Skip to content

Commit

Permalink
fixed access uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Joungkyun committed Feb 16, 2016
1 parent e4d653f commit a8566ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Changelog
$Id$

* 3.1.5
Tue, Feb 16 2016 JoungKyun.Kim <http://oops.org>
- fixed access uninitialized variable

Sat, Feb 15 2013 JoungKyun.Kim <http://oops.org>
- fixed libiconv link on cygwin

Expand Down
2 changes: 1 addition & 1 deletion krisp.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ bool _kr_open (KR_API **db, char *file, char *err, bool safe) { // {{{
(*db)->rows = 0;
(*db)->cols = 0;

(*db)->verbose = false;
#ifdef HAVE_LIBPTHREAD
(*db)->threadsafe = safe;
if ( (*db)->threadsafe == true )
Expand Down Expand Up @@ -108,7 +109,6 @@ bool _kr_open (KR_API **db, char *file, char *err, bool safe) { // {{{
(*db)->db_time_stamp_interval = 0;
(*db)->db_time_stamp = f.st_mtime;
(*db)->db_stamp_checked = time (NULL);
(*db)->verbose = false;

if ( kr_dbConnect (*db) == false ) {
SAFECPY_1024 (err, (*db)->err);
Expand Down

0 comments on commit a8566ec

Please sign in to comment.