From 72548da09a6da36af71928c65057c86e42e1e70c Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 13 Apr 2015 22:50:22 +0200 Subject: [PATCH 2/2] CID 54846: Dereference null return value (NULL_RETURNS). --- bus/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bus/connection.c b/bus/connection.c index d8da853..ea0bb4a 100644 --- a/bus/connection.c +++ b/bus/connection.c @@ -2658,7 +2658,7 @@ bus_connection_get_peak_bus_names (DBusConnection *connection) BusConnectionData *d; d = BUS_CONNECTION_DATA (connection); - return d->peak_bus_names; + return d ? d->peak_bus_names : 0; } #endif /* DBUS_ENABLE_STATS */ -- 1.8.4.5