From 18c0faa73be88fb77d23c0c26b3dc06230c81303 Mon Sep 17 00:00:00 2001
From: "Tobias S. Josefowitz" <tobij@tobij.de>
Date: Thu, 1 Dec 2011 14:33:17 +0100
Subject: [PATCH] cpp: this.data = NULL also required.

---
 src/cpp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cpp.c b/src/cpp.c
index 573593402d..81b2380e3c 100644
--- a/src/cpp.c
+++ b/src/cpp.c
@@ -2049,7 +2049,7 @@ void f_cpp(INT32 args)
     if(TYPEOF(*charset_sv) == T_STRING) {
       charset = charset_sv->u.string;
       push_string(data);
-      data = NULL;
+      this.data = data = NULL;
       ref_push_string(charset);
       if (!safe_apply_handler ("decode_charset", this.handler,
 			       this.compat_handler, 2, BIT_STRING)) {
-- 
GitLab