Commit: 0de4b9f71eb9e01ee972755cf3444592706356c7
Parent: 8de21f74c5f309bdb3872293db23b5a0f20ae163
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-07-08 17:18:17
Tree: a122a422cbe0e93edf881a5f47eba272b12c7996

sdp: Fix possible null dereference From the BlueZ scanbot: lib/sdp.c:586:12: warning: Access to field 'attrId' results in a dereference of a null pointer (loaded from variable 'd') d->attrId = attr; ~ ^ lib/sdp.c:967:10: warning: Access to field 'dtd' results in a dereference of a null pointer (loaded from variable 'd') switch (d->dtd) { ^~~~~~

Diffstat

M lib/sdp.c | 4 ++++

1 files changed, 4 insertions(+), 0 deletions(-)

View Full Diff | Patch