[PATCH gpgme] Remove suspicious semicolon in _gpgme_encode_percent_string().

Xi Wang xi.wang at gmail.com
Thu Nov 15 09:27:48 CET 2012


---
Looks like existing clients call this function with len==0, so this
issue is never triggered.
---
 src/conversion.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conversion.c b/src/conversion.c
index 356200c..b47d6de 100644
--- a/src/conversion.c
+++ b/src/conversion.c
@@ -282,7 +282,7 @@ _gpgme_encode_percent_string (const char *src, char **destp, size_t len)
   /* Set up the destination buffer.  */
   if (len)
     {
-      if (len < destlen);
+      if (len < destlen)
 	return gpg_error (GPG_ERR_INTERNAL);
 
       dest = *destp;
-- 
1.7.10.4




More information about the Gnupg-devel mailing list