From: Davis Herring <herring@lanl.gov>
To: Keith David Bershatsky <esq@lawlist.com>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Printing to STDERR when %d is "Cannot access memory ..."
Date: Wed, 13 Jun 2018 12:50:13 -0600 [thread overview]
Message-ID: <9f92439f-6db3-8366-536f-21554269442c@lanl.gov> (raw)
In-Reply-To: <m2in6mh6sq.wl%esq@lawlist.com>
> fprintf (stderr, "(%d)", (font->space_width == NULL
> ? 0
> : font->space_width);
>
> However, that didn't fix the problem.
You meant
fprintf (stderr, "(%d)", font == NULL ? 0 :
font->space_width);
It's font that could be null, not its space_width.
Davis
PS - This says nothing about why font is null -- it might be a bug, or
it might just be a bug that this code uses it without checking.
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
next prev parent reply other threads:[~2018-06-13 18:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-13 18:37 Printing to STDERR when %d is "Cannot access memory ..." Keith David Bershatsky
2018-06-13 18:50 ` Davis Herring [this message]
2018-06-13 19:11 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2018-06-13 19:34 Keith David Bershatsky
2018-06-13 19:34 Keith David Bershatsky
2018-06-13 19:46 ` Eli Zaretskii
2018-06-13 21:37 Keith David Bershatsky
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9f92439f-6db3-8366-536f-21554269442c@lanl.gov \
--to=herring@lanl.gov \
--cc=emacs-devel@gnu.org \
--cc=esq@lawlist.com \
/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.savannah.gnu.org/cgit/emacs.git
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).