[libdmapsharing] Handle DMAP_TYPE_INVALID case statement which did not
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Handle DMAP_TYPE_INVALID case statement which did not
- Date: Tue, 5 Dec 2017 04:14:38 +0000 (UTC)
commit a9940b7e50a51c252b76211f35da162cb915fd4d
Author: W. Michael Petullo <mike flyn org>
Date: Mon Dec 4 23:14:17 2017 -0500
Handle DMAP_TYPE_INVALID case statement which did not
Signed-off-by: W. Michael Petullo <mike flyn org>
libdmapsharing/dmap-structure.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libdmapsharing/dmap-structure.c b/libdmapsharing/dmap-structure.c
index e68bde2..d69929e 100644
--- a/libdmapsharing/dmap-structure.c
+++ b/libdmapsharing/dmap-structure.c
@@ -698,6 +698,13 @@ dmap_structure_parse_container_buffer (GNode * parent,
codesize);
break;
}
+ case DMAP_TYPE_INVALID:
+ default:
+ /*
+ * Bad type should have been caught as bad content code
+ * by dmap_content_code_read_from_buffer()
+ */
+ g_assert_not_reached();
}
l += codesize;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]