projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
View: Move assertion after assignment
[pulseview.git]
/
pv
/
view
/
view.cpp
diff --git
a/pv/view/view.cpp
b/pv/view/view.cpp
index 9841978a67f333a6b2c5eff555e70bea98590194..a7dcc20bf94194c8011e12e64ae5e027344ef4d0 100644
(file)
--- 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();
}