summaryrefslogtreecommitdiff
path: root/xgpsspeed
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2017-09-06 19:00:04 -0400
committerEric S. Raymond <esr@thyrsus.com>2017-09-06 19:00:04 -0400
commit9c7e8629876fb3ff115902e37fe562641ce9de11 (patch)
tree08ca2e4206ccc0dbda2ee946d907763ae9166aab /xgpsspeed
parentdb56959e1cf2670edb02f27f25580bb4272e9df2 (diff)
downloadgpsd-9c7e8629876fb3ff115902e37fe562641ce9de11.tar.gz
Clean up C and Python code-checker warnings.
Diffstat (limited to 'xgpsspeed')
-rwxr-xr-xxgpsspeed8
1 files changed, 4 insertions, 4 deletions
diff --git a/xgpsspeed b/xgpsspeed
index 6f86627e..936fc65c 100755
--- a/xgpsspeed
+++ b/xgpsspeed
@@ -787,12 +787,12 @@ if __name__ == '__main__':
sys.exit(0)
target = ':'.join(args[0:])
elif options.host or options.port or options.device:
- target = [options.host or 'localhost']
+ ltarget = [options.host or 'localhost']
if options.port or options.device:
- target += [options.port or '']
+ ltarget += [options.port or '']
if options.device:
- target += [options.device]
- target = ':'.join(target)
+ ltarget += [options.device]
+ target = ':'.join(ltarget)
else:
target = ""
Main(