projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'u-boot-imx-20200609' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
[oweals/u-boot.git]
/
lib
/
smbios.c
diff --git
a/lib/smbios.c
b/lib/smbios.c
index e8ee55c4aeb941bb46218be5d34e2dc27f28dd9f..11790443e1a9fed505220e526009d9b0edf273f6 100644
(file)
--- a/
lib/smbios.c
+++ b/
lib/smbios.c
@@
-6,6
+6,7
@@
*/
#include <common.h>
+#include <env.h>
#include <mapmem.h>
#include <smbios.h>
#include <tables_csum.h>
@@
-30,6
+31,8
@@
static int smbios_add_string(char *start, const char *str)
{
int i = 1;
char *p = start;
+ if (!*str)
+ str = "Unknown";
for (;;) {
if (!*p) {