aboutsummaryrefslogtreecommitdiffstats
path: root/parseconfig.inc
diff options
context:
space:
mode:
Diffstat (limited to 'parseconfig.inc')
-rw-r--r--parseconfig.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/parseconfig.inc b/parseconfig.inc
index cad86b3a..77caf845 100644
--- a/parseconfig.inc
+++ b/parseconfig.inc
@@ -302,8 +302,13 @@ pc_getline: mov di,trackbuf
; Main loop for configuration file parsing
;
parse_config:
+ mov di,VKernelBuf ; Clear VKernelBuf at start
+ xor ax,ax
+ mov cx,vk_size
+ rep stosb
+.again:
call getcommand
- jnc parse_config ; If not EOF do it again
+ jnc .again ; If not EOF do it again
;
; The fall through to commit_vk to commit any final
; VKernel being read