summaryrefslogtreecommitdiff
path: root/lib/gnutls_str.c
diff options
context:
space:
mode:
authorJaak Ristioja <jaak.ristioja@cyber.ee>2014-12-17 13:55:10 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-12-17 14:41:13 +0200
commitc137cd724b5a8c2b6f49916cb8cc8fc29d0ad59c (patch)
tree30410b163bc1899d49b4e905d1bed6ca9dde7695 /lib/gnutls_str.c
parentdaac150cbc7ab17e251826ba0ce68c8bcf5e6b1d (diff)
downloadgnutls-c137cd724b5a8c2b6f49916cb8cc8fc29d0ad59c.tar.gz
Remove redundant condition in align_allocd_with_data().
At all call-sites of align_allocd_with_data() dest->data is non-NULL. Signed-off-by: Jaak Ristioja <jaak.ristioja@cyber.ee>
Diffstat (limited to 'lib/gnutls_str.c')
-rw-r--r--lib/gnutls_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_str.c b/lib/gnutls_str.c
index b6767acc90..f7613e0309 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;
}