diff options
-rw-r--r-- | DuetPkg/FSVariable/FSVariable.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/DuetPkg/FSVariable/FSVariable.c b/DuetPkg/FSVariable/FSVariable.c index 06df161..34b7930 100644 --- a/DuetPkg/FSVariable/FSVariable.c +++ b/DuetPkg/FSVariable/FSVariable.c @@ -1337,6 +1337,10 @@ Returns: return EFI_INVALID_PARAMETER;
}
+ if (VariableName[0] == 0) {
+ return EFI_NOT_FOUND;
+ }
+
//
// Find existing variable
//
|