Skip to content
Commit 28897df2 authored by Peter Bigot's avatar Peter Bigot Committed by Kumar Gala
Browse files

device: use empty string as drvname when devicetree label is absent



As we move to making the `label` property optional, we need to account
for widespread use of `dev->name` in contexts where the pointer is not
validated before it is dereferenced.  Use an empty string instead of a
null pointer when no label is provided.

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent 5b36a01a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment