summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-04-02 14:43:47 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-04-02 14:43:47 (GMT)
commitf9404bf68a067b06986cd85855c43795ec578dbd (patch)
tree57f481aced2c69ddf6ac9766f310be86ebe03f6f /src/common
parentd69503d7aeceddc52dfee9481e6a0e8ba9c1fc85 (diff)
Removed lots of uninitialized uses, mostly in NDEBUG mode.
Diffstat (limited to 'src/common')
-rwxr-xr-xsrc/common/endianness.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/endianness.c b/src/common/endianness.c
index 3aeca00..0304647 100755
--- a/src/common/endianness.c
+++ b/src/common/endianness.c
@@ -97,6 +97,7 @@ uint16_t swap_u16(const uint16_t *value, SourceEndian endian)
default:
assert(false);
+ result = -1;
break;
}
@@ -157,6 +158,7 @@ uint32_t swap_u32(const uint32_t *value, SourceEndian endian)
default:
assert(false);
+ result = -1;
break;
}
@@ -221,6 +223,7 @@ uint64_t swap_u64(const uint64_t *value, SourceEndian endian)
default:
assert(false);
+ result = -1;
break;
}