Browse Source

Initialize all di_inlist struct members

Neal Wilson 10 years ago
parent
commit
6faf2b0b24
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/dataqsdk.w

+ 1
- 1
src/dataqsdk.w View File

@@ -339,7 +339,7 @@ void DataqSdkDeviceImplementation::run()
339 339
 	sampleRate = di_sample_rate(sampleRate * channels * 40, &oversample,
340 340
 	                            &burstDivisor);
341 341
 	buffer = new qint16[(int)sampleRate];
342
-	di_inlist_struct inlist[16] = {{0}};
342
+	di_inlist_struct inlist[16] = {{0, 0, 0, 0, 0, 0, 0, 0}};
343 343
 	for(unsigned short i = 0; i < channels; i++)
344 344
 	{
345 345
 		inlist[i].chan = i;

Loading…
Cancel
Save