diff options
author | Mike Sinkovsky <msink@permonline.ru> | 2017-01-03 14:43:02 +0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-03 13:34:39 -0500 |
commit | 079e43f70b639c2c4d9ef345bfa916999f3c0508 (patch) | |
tree | 480c3c9c6c259c0f430a05cd1d2cc7e5f8d60fe3 /mesonbuild/scripts/depfixer.py | |
parent | c025c71ae282cfe33e9fe5d8042e5b511808f2de (diff) | |
download | meson-079e43f70b639c2c4d9ef345bfa916999f3c0508.zip meson-079e43f70b639c2c4d9ef345bfa916999f3c0508.tar.gz meson-079e43f70b639c2c4d9ef345bfa916999f3c0508.tar.bz2 |
fix 'unreachable code' warnings
Diffstat (limited to 'mesonbuild/scripts/depfixer.py')
-rw-r--r-- | mesonbuild/scripts/depfixer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/scripts/depfixer.py b/mesonbuild/scripts/depfixer.py index c9ee36c..193d5b6 100644 --- a/mesonbuild/scripts/depfixer.py +++ b/mesonbuild/scripts/depfixer.py @@ -220,7 +220,7 @@ class Elf(DataSizes): soname = i if i.d_tag == DT_STRTAB: strtab = i - else: + if soname is None or strtab is None: print("This file does not have a soname") return self.bf.seek(strtab.val + soname.val) |