Browse Source

fix probable bug spotted from compiler warning

David Rose 24 years ago
parent
commit
250eaf0c3a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/chancfg/chanwindow.cxx

+ 1 - 1
panda/src/chancfg/chanwindow.cxx

@@ -113,7 +113,7 @@ void WindowParseFunctor::operator()(std::string S) {
   int hw_chan_offset = 0;
   bool dvr = false;
   if (!S.empty()) {
-    int hw_chan_offset = ChanReadNextInt(S);
+    hw_chan_offset = ChanReadNextInt(S);
     hw_chans = true;
   }
   if (!S.empty()) {