Skip to content

Commit 1e45ca1

Browse files
committed
Check for non-initialized keyword field
1 parent ceae512 commit 1e45ca1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
1414

1515
# Project version number
1616
set(PRJ_VERSION_MAJOR 8)
17-
set(PRJ_VERSION_MINOR 3)
17+
set(PRJ_VERSION_MINOR 4)
1818
configure_file("${PROJECT_SOURCE_DIR}/cmake/version.h.in" "${PROJECT_BINARY_DIR}/version.h")
1919
include_directories("${PROJECT_BINARY_DIR}")
2020

lib2inpx/lib2inpx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ void process_book(const mysql_connection& mysql, MYSQL_ROW record, const string&
604604
string book_deleted(record[4]);
605605
string book_time(record[5]);
606606
string book_lang(record[6]);
607-
string book_kwds = fix_data(cleanse(record[7]), g_limits.KeyWords);
607+
string book_kwds = (record[7] == NULL) ? "" : fix_data(cleanse(record[7]), g_limits.KeyWords);
608608
string book_file(cleanse(file_name));
609609

610610
string book_author, book_genres, book_sequence, book_sequence_num, book_rate;

0 commit comments

Comments
 (0)