Commit 34b54b49 authored by Chris Lamb's avatar Chris Lamb 👀
Browse files

Return '0' as the version if we can't parse one; it should be harmless.

parent 304660a5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -51,8 +51,9 @@ def readelf_version():
        out.decode('utf-8'),
    )

    # Return '0' as the version if we can't parse one; it should be harmless.
    if m is None:
        return 'unknown'
        return '0'

    return m.group('version')