summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/autodetection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/base/autodetection.cpp')
-rw-r--r--rbutil/rbutilqt/base/autodetection.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/base/autodetection.cpp b/rbutil/rbutilqt/base/autodetection.cpp
index 8fba1d8cea..a453fa8d60 100644
--- a/rbutil/rbutilqt/base/autodetection.cpp
+++ b/rbutil/rbutilqt/base/autodetection.cpp
@@ -167,9 +167,8 @@ bool Autodetection::detect()
167 167
168 // try sansapatcher 168 // try sansapatcher
169 // initialize sector buffer. Needed. 169 // initialize sector buffer. Needed.
170 sansa_sectorbuf = NULL;
171 sansa_alloc_buffer(&sansa_sectorbuf, BUFFER_SIZE);
172 struct sansa_t sansa; 170 struct sansa_t sansa;
171 sansa_alloc_buffer(&sansa, BUFFER_SIZE);
173 n = sansa_scan(&sansa); 172 n = sansa_scan(&sansa);
174 if(n == 1) { 173 if(n == 1) {
175 qDebug() << "[Autodetect] Sansa found:" << sansa.targetname << "at" << sansa.diskname; 174 qDebug() << "[Autodetect] Sansa found:" << sansa.targetname << "at" << sansa.diskname;
@@ -187,8 +186,8 @@ bool Autodetection::detect()
187 else { 186 else {
188 qDebug() << "[Autodetect] sansapatcher: no Sansa found." << n; 187 qDebug() << "[Autodetect] sansapatcher: no Sansa found." << n;
189 } 188 }
190 free(sansa_sectorbuf); 189 free(sansa.sectorbuf);
191 sansa_sectorbuf = NULL; 190 sansa.sectorbuf = NULL;
192 191
193 if(m_mountpoint.isEmpty() && m_device.isEmpty() 192 if(m_mountpoint.isEmpty() && m_device.isEmpty()
194 && m_errdev.isEmpty() && m_incompat.isEmpty()) 193 && m_errdev.isEmpty() && m_incompat.isEmpty())