From d84c2833bead55d666b4cb8584cedd90358f53ad Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 13 Apr 2015 22:49:12 +0200 Subject: [PATCH 1/2] CID 54854: 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 690f3a5..d8da853 100644 --- a/bus/connection.c +++ b/bus/connection.c @@ -2649,7 +2649,7 @@ bus_connection_get_peak_match_rules (DBusConnection *connection) BusConnectionData *d; d = BUS_CONNECTION_DATA (connection); - return d->peak_match_rules; + return d ? d->peak_match_rules : 0; } int -- 1.8.4.5