aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/tools/web_config/webconfig.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py
index 52d9990b..3eb110bb 100755
--- a/share/tools/web_config/webconfig.py
+++ b/share/tools/web_config/webconfig.py
@@ -291,7 +291,8 @@ class BindingParser:
def get_char(self):
""" Gets next character from buffer """
-
+ if self.index >= len(self.buffer):
+ return '\0'
c = self.buffer[self.index]
self.index += 1
return c