[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing to STDERR when %d is "Cannot access memory ..."

From: Davis Herring
Subject: Re: Printing to STDERR when %d is "Cannot access memory ..."
Date: Wed, 13 Jun 2018 12:50:13 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0

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 :

It's font that could be null, not its space_width.


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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]