diff page-search.c @ 84:94dcca86e5cc

pasterd: database reentrancy + timer
author David Demelier <markand@malikania.fr>
date Fri, 17 Mar 2023 20:01:00 +0100
parents 0a29424e4486
children
line wrap: on
line diff
--- a/page-search.c	Fri Mar 17 10:49:24 2023 +0100
+++ b/page-search.c	Fri Mar 17 20:01:00 2023 +0100
@@ -110,7 +110,7 @@
 	if (author && strlen(author) == 0)
 		author = NULL;
 
-	if (database_search(pastes, &pastesz, title, author, language) < 0)
+	if (database_search(&database, pastes, &pastesz, title, author, language) < 0)
 		page_status(req, KHTTP_500);
 	else {
 		page_index_render(req, pastes, pastesz);