diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2018-11-29 15:28:31 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-12-10 22:21:12 -0600 |
commit | 99fc78dbee4af123bffb5ca6a9e17a423fa2d013 (patch) | |
tree | afbadcb815ae85eeb7932ea38b826d8ffe2fe252 /core | |
parent | 95f587417cd94c592e34e7569e22e4a0c1691915 (diff) | |
download | skiboot-99fc78dbee4af123bffb5ca6a9e17a423fa2d013.zip skiboot-99fc78dbee4af123bffb5ca6a9e17a423fa2d013.tar.gz skiboot-99fc78dbee4af123bffb5ca6a9e17a423fa2d013.tar.bz2 |
vpd: Force static analysis to not think about NULL term strings
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/vpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -204,7 +204,7 @@ static void *vpd_lid_preload(const uint8_t *lx) void vpd_iohub_load(struct dt_node *hub_node) { - char record[4] = "LXR0"; + uint8_t record[4] = { 'L','X','R','0' }; /* not null terminated */ const void *valid_lx; uint8_t lx_size; int r; |