mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-23 03:52:35 -04:00
small simplification of the code (related to search)
This commit is contained in:
parent
f080433a47
commit
c5c8636c9f
@ -281,9 +281,7 @@ static int accessHandlerCallback(void *cls,
|
||||
|
||||
/* Retrieve the pattern to search */
|
||||
const char* pattern = MHD_lookup_connection_value(connection, MHD_GET_ARGUMENT_KIND, "pattern");
|
||||
if (pattern == NULL)
|
||||
pattern = "";
|
||||
std::string patternString = kiwix::urlDecode(string(pattern));
|
||||
std::string patternString = kiwix::urlDecode(pattern == NULL ? "" : string(pattern));
|
||||
std::string patternCorrespondingUrl;
|
||||
|
||||
/* Try first to load directly the article */
|
||||
|
Loading…
x
Reference in New Issue
Block a user