[libdmapsharing] Handle DMAP_TYPE_INVALID case statement which did not



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]