From d5995661ea9eb402f374c9f29739180d6148eabd Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 15 Jun 2010 14:11:55 -0700 Subject: [PATCH] conf: fix buffer initalization This fixes a bug where we didn't initialize the variable post processing buffer, which would sometimes lead to garbage data. --- src/config.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.cc b/src/config.cc index 9615186145d05..085b100e51203 100644 --- a/src/config.cc +++ b/src/config.cc @@ -795,6 +795,7 @@ char *conf_post_process_val(const char *val) size_t max_line = MAX_LINE; buf = (char *)malloc(max_line); + *buf = 0; while (val[i]) { if (val[i] == '$') { -- 2.39.5