[PATCH] libpartutil: dereference pointer after checking it's not NULL

Danny Kukawka danny.kukawka at web.de
Tue Nov 20 06:21:07 PST 2007


On Freitag, 9. November 2007, Guillem Jover wrote:
> ---
>  partutil/partutil.c |   24 ++++++++++++++++++------
>  1 files changed, 18 insertions(+), 6 deletions(-)

Commited, thanks.

One point: shouldn't there be also a check if pe == NULL after call 
pe=g_slist_nth_data(...) ? Something like the attached patch.

Danny


-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-partutil_add_more_checks.diff
Type: text/x-diff
Size: 2433 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20071120/2a7dc24a/attachment.diff 


More information about the hal mailing list