[systemd-devel] [PATCH] sysusers: fix uninitialized warning

Ronny Chevalier chevalier.ronny at gmail.com
Sun Jul 6 04:33:38 PDT 2014


---
 src/sysusers/sysusers.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c
index 1209a5a..c0af693 100644
--- a/src/sysusers/sysusers.c
+++ b/src/sysusers/sysusers.c
@@ -1312,6 +1312,8 @@ static int parse_line(const char *fname, unsigned line, const char *buffer) {
 
                 h = groups;
                 break;
+        default:
+                return -EBADMSG;
         }
 
         i->type = action[0];
-- 
2.0.1



More information about the systemd-devel mailing list