donate-cpu.py: Fix too few return values in scanPackage()

In case a crash is detected the scanPackage() function returns too few values (three instead of four).
This likely leads to an exception then.
This commit is contained in:
versat 2019-01-17 14:58:15 +01:00
parent cdae767bd8
commit be14517bcd
1 changed files with 2 additions and 2 deletions

View File

@ -237,11 +237,11 @@ def scanPackage(workPath, cppcheck, jobs):
if p.returncode != 0 and 'cppcheck: error: could not find or open any of the paths given.' not in stdout:
# Crash!
print('Crash!')
return -1, '', -1
return -1, '', -1, options
if stderr.find('Internal error: Child process crashed with signal 11 [cppcheckError]') > 0:
# Crash!
print('Crash!')
return -1, '', -1
return -1, '', -1, options
elapsedTime = stopTime - startTime
count = 0
for line in stderr.split('\n'):