summaryrefslogtreecommitdiff
path: root/lib/str.c
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2019-02-12 15:14:07 +0100
committerTim Rühsen <tim.ruehsen@gmx.de>2019-02-22 13:11:01 +0100
commit372821c883a3d36ed3ed683844ad9d90818f6392 (patch)
tree6783b9830f7eb9294a5bd316c9786e5d6981abaf /lib/str.c
parentd39778e43d1674cb3ab3685157fd299816d535c0 (diff)
downloadgnutls-372821c883a3d36ed3ed683844ad9d90818f6392.tar.gz
Remove redundant resets of variables after free()
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Diffstat (limited to 'lib/str.c')
-rw-r--r--lib/str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/str.c b/lib/str.c
index 7757730175..4a89de227e 100644
--- a/lib/str.c
+++ b/lib/str.c
@@ -80,7 +80,7 @@ void _gnutls_buffer_clear(gnutls_buffer_st * str)
return;
gnutls_free(str->allocd);
- str->data = str->allocd = NULL;
+ str->data = NULL;
str->max_length = 0;
str->length = 0;
}