session: reason2string return a string for unknown
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 22 Aug 2011 12:26:05 +0000 (14:26 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 23 Aug 2011 15:22:29 +0000 (17:22 +0200)
src/session.c

index 19771b2aa59ed81417324e34d8659abb358579a3..07d4ef341e7bb06f2bd580ec9ff22a8c84bde6ea 100644 (file)
@@ -134,7 +134,7 @@ static const char *reason2string(enum connman_session_reason reason)
 {
        switch (reason) {
        case CONNMAN_SESSION_REASON_UNKNOWN:
-               break;
+               return "unknown";
        case CONNMAN_SESSION_REASON_CONNECT:
                return "connect";
        case CONNMAN_SESSION_REASON_FREE_RIDE: