[gnutls-devel] [PATCH 4/4] Remove redundant condition in align_allocd_with_data().
Jaak Ristioja
jaak.ristioja at cyber.ee
Wed Dec 17 12:55:10 CET 2014
At all call-sites of align_allocd_with_data() dest->data is non-NULL.
Signed-off-by: Jaak Ristioja <jaak.ristioja at cyber.ee>
---
lib/gnutls_str.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/gnutls_str.c b/lib/gnutls_str.c
index 267b813..1a9c50d 100644
--- a/lib/gnutls_str.c
+++ b/lib/gnutls_str.c
@@ -108,7 +108,7 @@ void _gnutls_buffer_clear(gnutls_buffer_st * str)
static void align_allocd_with_data(gnutls_buffer_st * dest)
{
- if (dest->length && dest->data)
+ if (dest->length)
memmove(dest->allocd, dest->data, dest->length);
dest->data = dest->allocd;
}
--
2.2.0
More information about the Gnutls-devel
mailing list