diff options
author | midipix <writeonce@midipix.org> | 2016-10-24 01:04:23 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-11 00:22:50 -0500 |
commit | 4e1d8fa020dfb736c09f0dc2f18b8124405b645f (patch) | |
tree | 98b3fadd44b046be7d1376c5d4211c667ef4e002 | |
parent | 64325248d3ee53041f657889ee9e01587d14194d (diff) | |
download | mdso-4e1d8fa020dfb736c09f0dc2f18b8124405b645f.tar.bz2 mdso-4e1d8fa020dfb736c09f0dc2f18b8124405b645f.tar.xz |
mdso_map_input(): report a custom error when size of input file is zero.
-rw-r--r-- | src/logic/mdso_map_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logic/mdso_map_input.c b/src/logic/mdso_map_input.c index 1a766ee..592aaae 100644 --- a/src/logic/mdso_map_input.c +++ b/src/logic/mdso_map_input.c @@ -42,7 +42,7 @@ int mdso_map_input( return MDSO_SYSTEM_ERROR(dctx); else if (st.st_size == 0) - return MDSO_SYSTEM_ERROR(dctx); + return MDSO_CUSTOM_ERROR(dctx,0); map->size = st.st_size; map->addr = mmap(0,map->size,prot,MAP_PRIVATE,fd,0); |