]> sigrok.org Git - pulseview.git/commitdiff
View: Move assertion after assignment
authorSoeren Apel <redacted>
Wed, 20 Jul 2016 06:52:50 +0000 (08:52 +0200)
committerSoeren Apel <redacted>
Wed, 20 Jul 2016 06:52:50 +0000 (08:52 +0200)
pv/view/view.cpp

index 9841978a67f333a6b2c5eff555e70bea98590194..a7dcc20bf94194c8011e12e64ae5e027344ef4d0 100644 (file)
@@ -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();
        }