mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-26 23:36:17 -04:00
If we have a construct like this:
label: &handle {
...
};
Running dtc on it will cause a segfault, because we use 'target'
when it could be NULL. Move the add_label() call into the if
statement to fix this potentially bad use of a NULL pointer.
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
9 lines
41 B
Text
9 lines
41 B
Text
/dts-v1/;
|
|
|
|
/ {
|
|
|
|
};
|
|
|
|
label: &handle {
|
|
|
|
};
|