summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorISSOtm <eldredhabert0@gmail.com>2018-06-04 17:03:50 +0200
committerISSOtm <eldredhabert0@gmail.com>2018-06-04 17:03:50 +0200
commit027728b3c419014e299f5529c8a761fe766755c3 (patch)
tree07e88bcfc525c9ce8f1aa52d507313f323700cbd
parent500a40705e426fcfc874c0cf3605c192e9862c1c (diff)
Fix empty line handling
-rw-r--r--tools/make_shim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/make_shim.c b/tools/make_shim.c
index 70da31d..b5a7517 100644
--- a/tools/make_shim.c
+++ b/tools/make_shim.c
@@ -116,7 +116,7 @@ int main(int argc, char * argv[]) {
end = strchr(lineptr, ';');
if (end) *end = 0;
lineptr[strrspn(lineptr, " \t\n")] = 0;
- if (!*line)
+ if (!*lineptr)
continue;
// Get the bank, address, and symbol