diff options
author | Jaak Ristioja <jaak.ristioja@cyber.ee> | 2014-12-17 13:55:10 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-12-17 14:41:13 +0200 |
commit | c137cd724b5a8c2b6f49916cb8cc8fc29d0ad59c (patch) | |
tree | 30410b163bc1899d49b4e905d1bed6ca9dde7695 /lib/gnutls_str.c | |
parent | daac150cbc7ab17e251826ba0ce68c8bcf5e6b1d (diff) | |
download | gnutls-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.c | 2 |
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; } |