Fix: add assert for NULL dereference
[lttng-ust.git] / liblttng-ust / lttng-ust-abi.c
index a852aaef99752789ee66cb6a017485c8604e43b6..81605a1aefcad21b5089d7172f6861670ccf5737 100644 (file)
@@ -185,6 +185,7 @@ static
 void objd_ref(int id)
 {
        struct lttng_ust_obj *obj = _objd_get(id);
+       assert(obj != NULL);
        obj->u.s.f_count++;
 }
 
This page took 0.022537 seconds and 4 git commands to generate.