Thread (24 messages) 24 messages, 2 authors, 2016-03-07

Re: [ethtool PATCH v3 06/12] test-common.c: fix test_realloc(NULL, ...)

flat view

From: Ben Hutchings <hidden>
Date: 2016-03-07 16:07:39

On Fri, 2016-03-04 at 16:42 -0800, David Decotigny wrote:
From: Maciej Żenczykowski <redacted>

This fixes:
  test-common.c: In function 'test_realloc':
  test-common.c:109:8: error: 'block' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    block = realloc(block, sizeof(*block) + size);
          ^
[...]

LGTM.

Ben.

-- 
Ben Hutchings
The most exhausting thing in life is being insincere. - Anne Morrow Lindberg

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help