From 7a2a0c016382ea40a1f8b0216ee944691b99ee87 Mon Sep 17 00:00:00 2001 From: Curtis Maloney Date: Wed, 4 Oct 2017 16:02:06 +1100 Subject: [PATCH] Set fallback_key to NULL by default, not "" --- plugins/corerouter/corerouter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/corerouter/corerouter.c b/plugins/corerouter/corerouter.c index 4ee68c173a..ea607351a7 100644 --- a/plugins/corerouter/corerouter.c +++ b/plugins/corerouter/corerouter.c @@ -257,7 +257,7 @@ void uwsgi_opt_corerouter_ss(char *opt, char *value, void *cr) { void uwsgi_opt_corerouter_fallback_key(char *opt, char *value, void *key) { struct uwsgi_corerouter *ptr = (struct uwsgi_corerouter *) key; if (!value) { - ptr->fallback_key = ""; + ptr->fallback_key = NULL; ptr->fallback_key_len = 0; return; }