From: Jérémie Galarneau Date: Wed, 9 Mar 2016 20:34:52 +0000 (-0500) Subject: Fix: session_find_by_id can return NULL legitimately X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=d68ec9741e83c99eea549243eec46c37b4eea61f;hp=d68ec9741e83c99eea549243eec46c37b4eea61f;p=lttng-tools.git Fix: session_find_by_id can return NULL legitimately session_find_by_id can return NULL when the backing hash table is NULL. This is not an error in the context of its caller, save_per_pid_lost_discarded_counters(), since the ltt_session can be destroyed before an ust app session is torn down. See the comment in save_per_pid_lost_discarded_counters() for more information. Signed-off-by: Jérémie Galarneau ---