commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r8296 - gnuradio/trunk/gnuradio-core/src/lib/general


From: eb
Subject: [Commit-gnuradio] r8296 - gnuradio/trunk/gnuradio-core/src/lib/general
Date: Tue, 29 Apr 2008 22:36:11 -0600 (MDT)

Author: eb
Date: 2008-04-29 22:36:05 -0600 (Tue, 29 Apr 2008)
New Revision: 8296

Modified:
   gnuradio/trunk/gnuradio-core/src/lib/general/gr_complex_to_xxx.cc
Log:
Potentially invalid read deferred until it's valid (Dan Halperin)


Modified: gnuradio/trunk/gnuradio-core/src/lib/general/gr_complex_to_xxx.cc
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/general/gr_complex_to_xxx.cc   
2008-04-30 03:52:31 UTC (rev 8295)
+++ gnuradio/trunk/gnuradio-core/src/lib/general/gr_complex_to_xxx.cc   
2008-04-30 04:36:05 UTC (rev 8296)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004,2008 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -51,7 +51,7 @@
 {
   const gr_complex *in = (const gr_complex *) input_items[0];
   float *out0 = (float *) output_items[0];
-  float *out1 = (float *) output_items[1];
+  float* out1;
   int noi = noutput_items * d_vlen;
 
   switch (output_items.size ()){
@@ -62,6 +62,7 @@
     break;
 
   case 2:
+    out1 = (float *) output_items[1];
     for (int i = 0; i < noi; i++){
       out0[i] = in[i].real ();
       out1[i] = in[i].imag ();





reply via email to

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