aboutsummaryrefslogtreecommitdiff
path: root/fw_cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw_cfg.c')
-rw-r--r--fw_cfg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fw_cfg.c b/fw_cfg.c
index d222da2..79aeb70 100644
--- a/fw_cfg.c
+++ b/fw_cfg.c
@@ -44,6 +44,8 @@ int fw_cfg_file_id(char *name)
uint32_t fw_cfg_file_size(int id)
{
+ if (id == -1)
+ return 0;
return files[id].size;
}