public inbox for
 help / color / mirror / Atom feed
From: Carlo Bramini <>
To: "" <>
Subject: Declare bzerrorstrings[] to be a const object.
Date: Tue, 26 Apr 2022 16:33:22 +0200 (CEST)	[thread overview]
Message-ID: <> (raw)

[-- Attachment #1: Type: text/plain, Size: 345 bytes --]

by looking the content of the map file, I discovered that bzerrorstrings[] is not const.
So, I would like to suggest the tiny change into the attached patch, for declaring both bzerrorstrings[] and the addressed strings as const.
The patch has been created from the latest sources into the repository with GIT.


Carlo Bramini.

[-- Attachment #2: bzlib.c.patch --]
[-- Type: application/octet-stream, Size: 337 bytes --]

diff --git a/bzlib.c b/bzlib.c
index 2178655..752d5a0 100644
--- a/bzlib.c
+++ b/bzlib.c
@@ -1536,7 +1536,7 @@ void BZ_API(BZ2_bzclose) (BZFILE* b)
    return last error code 
-static const char *bzerrorstrings[] = {
+static const char * const bzerrorstrings[] = {

             reply	other threads:[~2022-04-26 14:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-26 14:33 Carlo Bramini [this message]
2022-04-26 19:35 ` Mark Wielaard
2022-04-27  9:21   ` Carlo Bramini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).