[coreboot-gerrit] Change in coreboot[master]: src: Use NULL instead of 0 for pointer

Martin Roth (Code Review) gerrit at coreboot.org
Thu Jun 14 00:26:44 CEST 2018


Martin Roth has posted comments on this change. ( https://review.coreboot.org/27096 )

Change subject: src: Use NULL instead of 0 for pointer
......................................................................


Patch Set 6:

This isn't right.  When you're assigning *ptr = 0, you're setting the value of the address pointed to by ptr to 0, not setting the address of ptr to NULL.  Look up dereferencing a pointer.


-- 
To view, visit https://review.coreboot.org/27096
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie9d22a4d6bab1caf61f4f89e236ae3cd2f7fb42c
Gerrit-Change-Number: 27096
Gerrit-PatchSet: 6
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
Gerrit-CC: Martin Roth <martinroth at google.com>
Gerrit-Comment-Date: Wed, 13 Jun 2018 22:26:44 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180613/74cc0527/attachment.html>


More information about the coreboot-gerrit mailing list