From: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: Re: Misc. compile warnings
Date: Wed, 29 Oct 2014 23:09:40 +0900 [thread overview]
Message-ID: <681231AB-421F-4CEE-9ECA-708B55A31464@kba.biglobe.ne.jp> (raw)
In-Reply-To: <20140930095323.21c81922@pwslap01u.europe.root.pri>
2014/09/30 06:01, Bart Schaefer <schaefer@brasslantern.com> wrote:
> Just upgraded Mavericks and am seeing some compile warnings
The same 'zero treated as a null pointer constant' warning from zselect.c.
diff --git a/Src/Modules/zselect.c b/Src/Modules/zselect.c
index c020746..30a3f51 100644
--- a/Src/Modules/zselect.c
+++ b/Src/Modules/zselect.c
@@ -251,7 +251,7 @@ bin_zselect(char *nam, char **args, UNUSED(Options ops), UNUSED(int func))
outptr = outdata = (char **)zalloc((fdcount+1)*sizeof(char *));
while (nonempty(fdlist))
*outptr++ = getlinknode(fdlist);
- *outptr = '\0';
+ *outptr = NULL;
/* and store in array parameter */
if (outhash)
sethparam(outhash, outdata);
prev parent reply other threads:[~2014-10-29 14:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-29 21:01 Bart Schaefer
2014-09-30 8:53 ` Peter Stephenson
2014-10-29 14:09 ` Jun T. [this message]
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=681231AB-421F-4CEE-9ECA-708B55A31464@kba.biglobe.ne.jp \
--to=takimoto-j@kba.biglobe.ne.jp \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).