summaryrefslogtreecommitdiff
path: root/src/sexp.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2001-12-18 15:27:47 +0000
committerWerner Koch <wk@gnupg.org>2001-12-18 15:27:47 +0000
commit004977cdb2701bbc1495a8bd961d6c623ae85b40 (patch)
treeeaab21a76c2146574444503c0bfb7097f73b9dad /src/sexp.c
parentffe5dbc708a464f7a1f9eba1d02cdd56ec80e1e1 (diff)
downloadlibgcrypt-004977cdb2701bbc1495a8bd961d6c623ae85b40.tar.gz
* Makefile.am (DISTCLEANFILES): Include libgcrypt.sym
* sexp.c: Removed the commented test code because we now have a text in ../tests/
Diffstat (limited to 'src/sexp.c')
-rw-r--r--src/sexp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sexp.c b/src/sexp.c
index 239b32b7..59a4deb8 100644
--- a/src/sexp.c
+++ b/src/sexp.c
@@ -1124,6 +1124,9 @@ gcry_sexp_canon_len (const unsigned char *buffer, size_t length,
*errcode = 0;
*erroff = 0;
+ if (buffer)
+ return 0;
+
for (p=buffer; ; p++, count++ )
{
if (length && count >= length)