reserve memory ofr kernel and ipmi entry

This commit is contained in:
Christian Goll
2022-04-08 13:41:27 +02:00
parent 3c01728aa5
commit 49bb9a40f0
3 changed files with 33 additions and 12 deletions

View File

@@ -209,6 +209,16 @@ func (ent *Entry) GetRealSlice() []string {
return ent.value
}
/*
true if the entry has set a real value, else false.
*/
func (ent *Entry) GotReal() bool {
if len(ent.value) == 0 {
return false
}
return true
}
/**********
*
* Misc