summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/mdso_map_input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logic/mdso_map_input.c b/src/logic/mdso_map_input.c
index 592aaae..9dbdaff 100644
--- a/src/logic/mdso_map_input.c
+++ b/src/logic/mdso_map_input.c
@@ -42,7 +42,8 @@ int mdso_map_input(
return MDSO_SYSTEM_ERROR(dctx);
else if (st.st_size == 0)
- return MDSO_CUSTOM_ERROR(dctx,0);
+ return MDSO_CUSTOM_ERROR(
+ dctx,MDSO_ERR_SOURCE_SIZE_ZERO);
map->size = st.st_size;
map->addr = mmap(0,map->size,prot,MAP_PRIVATE,fd,0);