diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-25 15:03:01 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-25 15:03:01 +0900 |
commit | 3ae41c6868db101c0b7d5cabc0776a376654bf5d (patch) | |
tree | 734e1c75a5ef481a2028a0e4121fdc1141d85575 /src/gns | |
parent | 7a1793b347a72ec0b3437effe6faeb4170f1c445 (diff) | |
download | gnunet-3ae41c6868db101c0b7d5cabc0776a376654bf5d.tar.gz gnunet-3ae41c6868db101c0b7d5cabc0776a376654bf5d.zip |
- address coverity findings !coverity
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-bcd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gns/gnunet-bcd.c b/src/gns/gnunet-bcd.c index 60fe25945..754f8ac6f 100644 --- a/src/gns/gnunet-bcd.c +++ b/src/gns/gnunet-bcd.c | |||
@@ -484,14 +484,14 @@ create_response (void *cls, | |||
484 | internal_error->response); | 484 | internal_error->response); |
485 | } | 485 | } |
486 | 486 | ||
487 | MHD_add_response_header (pdfrs, | 487 | GNUNET_assert (MHD_NO != MHD_add_response_header (pdfrs, |
488 | MHD_HTTP_HEADER_CONTENT_TYPE, | 488 | MHD_HTTP_HEADER_CONTENT_TYPE, |
489 | (NULL == qrpng) ? "application/pdf" : "image/png"); | 489 | (NULL == qrpng) ? "application/pdf" : "image/png")); |
490 | MHD_add_response_header (pdfrs, | 490 | GNUNET_assert (MHD_NO != MHD_add_response_header (pdfrs, |
491 | MHD_HTTP_HEADER_CONTENT_DISPOSITION, | 491 | MHD_HTTP_HEADER_CONTENT_DISPOSITION, |
492 | (NULL == qrpng) ? | 492 | (NULL == qrpng) ? |
493 | "attachment; filename=\"gns-business-card.pdf\"" : | 493 | "attachment; filename=\"gns-business-card.pdf\"" : |
494 | "attachment; filename=\"gns-qr-code.png\""); | 494 | "attachment; filename=\"gns-qr-code.png\"")); |
495 | MHD_RESULT r = MHD_queue_response (connection, MHD_HTTP_OK, pdfrs); | 495 | MHD_RESULT r = MHD_queue_response (connection, MHD_HTTP_OK, pdfrs); |
496 | 496 | ||
497 | MHD_destroy_response (pdfrs); | 497 | MHD_destroy_response (pdfrs); |