[PATCH 11/30] Fix theoretical usage of NULL pointer dereference
| Newsgroups | dev.linux.lists.lvm-devel |
|---|---|
| Message-ID | <87eibe604l.wl%[email protected]> |
At Mon, 25 Oct 2010 10:24:18 +0200, Zdenek Kabelac wrote: > > clang seems to be happier with this check. > > Signed-off-by: Zdenek Kabelac <[email protected]> Nack, this can't happen. Or rather if it does something has gone badly wrong. So if (!*c) { stack; return 0; } would be better.