Make sure that we don't dereference NULL
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 12 Oct 2013 17:43:07 +0000 (13:43 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 13 Oct 2013 21:56:55 +0000 (17:56 -0400)
commitf6d2d421470a566cca05ceede788d61a0773e276
tree77649e8a775d9243eff6e8a03f126129ff5edadf
parent97fec53e5e91222f43fc89d0ad45fa197742a363
Make sure that we don't dereference NULL

The code was actually safe, because b should
never be null, because if rvalue is empty, a different
branch is taken. But we *do* check for NULL in the
loop above, so it's better to also check here for symmetry.
src/core/load-fragment.c