gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] branch master updated: postprocessor.c: added assert, mu


From: gnunet
Subject: [libmicrohttpd] branch master updated: postprocessor.c: added assert, muted analyzer warning
Date: Thu, 29 Oct 2020 18:02:06 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 7c0a8887 postprocessor.c: added assert, muted analyzer warning
7c0a8887 is described below

commit 7c0a88870b57845f72e107814c271b75f58765e9
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Oct 29 19:54:44 2020 +0300

    postprocessor.c: added assert, muted analyzer warning
---
 src/microhttpd/postprocessor.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c
index b9e93b8c..e6f0a9a7 100644
--- a/src/microhttpd/postprocessor.c
+++ b/src/microhttpd/postprocessor.c
@@ -26,6 +26,7 @@
 #include "internal.h"
 #include "mhd_str.h"
 #include "mhd_compat.h"
+#include "mhd_assert.h"
 
 /**
  * Size of on-stack buffer that we use for un-escaping of the value.
@@ -509,6 +510,8 @@ post_process_urlencoded (struct MHD_PostProcessor *pp,
   const char *end_value = NULL;
   const char *last_escape = NULL;
 
+  mhd_assert (PP_Callback != pp->state);
+
   poff = 0;
   while ( ( (poff < post_data_len) ||
             (pp->state == PP_Callback) ) &&

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]