[gjs/wip/3v1n0/toggle-queue-tests: 12/15] repo: Always return on gjs_info_type_name to ensure it works without asserts




commit 46a31661e56a261418b47879bf6502e8f6a62ea7
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Wed Apr 28 20:05:43 2021 +0200

    repo: Always return on gjs_info_type_name to ensure it works without asserts
    
    Also required when compiling with -Db_sanitize=thread.

 gi/repo.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gi/repo.cpp b/gi/repo.cpp
index 57938e6b..87030fd4 100644
--- a/gi/repo.cpp
+++ b/gi/repo.cpp
@@ -636,7 +636,7 @@ gjs_info_type_name(GIInfoType type)
         return "UNRESOLVED";
     case GI_INFO_TYPE_INVALID_0:
         g_assert_not_reached();
-        break;
+        return "----INVALID0----";
     default:
       return "???";
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]