aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtipidee/tipidee_log_request.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtipidee/tipidee_log_request.c')
-rw-r--r--src/libtipidee/tipidee_log_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtipidee/tipidee_log_request.c b/src/libtipidee/tipidee_log_request.c
index a50169d..d633f0b 100644
--- a/src/libtipidee/tipidee_log_request.c
+++ b/src/libtipidee/tipidee_log_request.c
@@ -17,7 +17,7 @@ void tipidee_log_request (uint32_t v, tipidee_rql const *rql, tipidee_headers co
size_t start = sa->len ; /* assert: not zero */
size_t refpos = 0, uapos = 0 ;
if (!(v & TIPIDEE_LOG_REQUEST)) return ;
- if (!string_quotes(sa, rql->uri.path)) goto eerr ;
+ if (!string_quotes(sa, rql->uri.path) || !stralloc_0(sa)) goto eerr ;
if (v & TIPIDEE_LOG_REFERRER)
{
char const *x = tipidee_headers_search(hdr, "Referrer") ;