commit | 02fdf4f77b3ccc9604d6db373cfb7906a50d199e | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Sep 05 15:49:01 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Sep 05 20:01:23 2018 +0200 |
tree | bedb2c28f0c1312fcca8c51667fba163342b7093 | |
parent | abd71a5c2e45c13fc80b0d3860c0971c92652b02 [diff] |
MINOR: log: use NULL for the unique_id if there is no stream Now s->unique_id is used as NULL (not set) if s==NULL.
diff --git a/src/log.c b/src/log.c index 19b448f..f2a0679 100644 --- a/src/log.c +++ b/src/log.c
@@ -2504,7 +2504,7 @@ case LOG_FMT_UNIQUEID: // %ID ret = NULL; - src = s->unique_id; + src = s ? s->unique_id : NULL; ret = lf_text(tmplog, src, maxsize - (tmplog - dst), tmp); if (ret == NULL) goto out;