json: Fix cosmetic error in the repl.
authorWerner Koch <wk@gnupg.org>
Thu, 28 Feb 2019 13:05:06 +0000 (14:05 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 28 Feb 2019 13:05:06 +0000 (14:05 +0100)
* src/gpgme-json.c (native_messaging_repl): Use correct var with sizeof.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
src/gpgme-json.c

index a8f9dec..7957659 100644 (file)
@@ -3758,7 +3758,7 @@ native_messaging_repl (void)
           log_error ("error writing request header: %s\n", gpg_strerror (err));
           break;
         }
-      if (n != sizeof nrequest)
+      if (n != sizeof nresponse)
         {
           log_error ("error writing request header: short write\n");
           break;