From: Soeren Apel Date: Wed, 20 Jul 2016 06:52:50 +0000 (+0200) Subject: View: Move assertion after assignment X-Git-Tag: pulseview-0.4.0~283 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3b353d67bba8fc2076d03e93fed6483572600fa9;p=pulseview.git View: Move assertion after assignment --- diff --git a/pv/view/view.cpp b/pv/view/view.cpp index 9841978a..a7dcc20b 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -939,8 +939,8 @@ void View::signals_changed() if (!session_.device()) { reset_scroll(); } else { - assert(sr_dev); sr_dev = session_.device()->device(); + assert(sr_dev); channels = sr_dev->channels(); }