gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: remove unnecessary grouping/paren


From: gnunet
Subject: [libmicrohttpd] branch master updated: remove unnecessary grouping/paren/nesting
Date: Sat, 27 Feb 2021 21:20:58 +0100

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

grothoff pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 8093de99 remove unnecessary grouping/paren/nesting
8093de99 is described below

commit 8093de995c3bce1735109cddcf521e28e36fd76d
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Feb 27 21:19:37 2021 +0100

    remove unnecessary grouping/paren/nesting
---
 src/microhttpd/postprocessor.c | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c
index aea78def..3a19af02 100644
--- a/src/microhttpd/postprocessor.c
+++ b/src/microhttpd/postprocessor.c
@@ -361,16 +361,14 @@ process_value (struct MHD_PostProcessor *pp,
           pp->xbuf_pos);
   xoff = pp->xbuf_pos;
   pp->xbuf_pos = 0;
-  if (NULL != last_escape)
+  if ( (NULL != last_escape) &&
+       (((size_t) (value_end - last_escape)) < sizeof (pp->xbuf)) )
   {
-    if (((size_t) (value_end - last_escape)) < sizeof (pp->xbuf))
-    {
-      pp->xbuf_pos = value_end - last_escape;
-      memcpy (pp->xbuf,
-              last_escape,
-              value_end - last_escape);
-      value_end = last_escape;
-    }
+    pp->xbuf_pos = value_end - last_escape;
+    memcpy (pp->xbuf,
+            last_escape,
+            value_end - last_escape);
+    value_end = last_escape;
   }
   while ( (value_start != value_end) ||
           (pp->must_ikvi) ||
@@ -435,7 +433,7 @@ process_value (struct MHD_PostProcessor *pp,
     MHD_unescape_plus (xbuf);
     xoff = MHD_http_unescape (xbuf);
     /* finally: call application! */
-    if ( (pp->must_ikvi || (0 != xoff)) )
+    if (pp->must_ikvi || (0 != xoff) )
     {
       pp->must_ikvi = false;
       if (MHD_NO == pp->ikvi (pp->cls,

-- 
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]