commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10110 - gnuradio/branches/features/cppdb-test/gr-usrp


From: jcorgan
Subject: [Commit-gnuradio] r10110 - gnuradio/branches/features/cppdb-test/gr-usrp/src
Date: Sun, 7 Dec 2008 11:05:09 -0700 (MST)

Author: jcorgan
Date: 2008-12-07 11:05:08 -0700 (Sun, 07 Dec 2008)
New Revision: 10110

Modified:
   gnuradio/branches/features/cppdb-test/gr-usrp/src/usrp_base.cc
Log:
Fix segfault on usrp not found

Modified: gnuradio/branches/features/cppdb-test/gr-usrp/src/usrp_base.cc
===================================================================
--- gnuradio/branches/features/cppdb-test/gr-usrp/src/usrp_base.cc      
2008-12-07 01:33:50 UTC (rev 10109)
+++ gnuradio/branches/features/cppdb-test/gr-usrp/src/usrp_base.cc      
2008-12-07 18:05:08 UTC (rev 10110)
@@ -44,7 +44,8 @@
 
 usrp_base::~usrp_base()
 {
-  d_usrp_basic->shutdown();
+  if (d_usrp_basic)
+    d_usrp_basic->shutdown();
 }
 
 void





reply via email to

[Prev in Thread] Current Thread [Next in Thread]