projects
/
osmocom-bb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gsm0808: Move the clear request from bsc_msc_ip to here
[osmocom-bb.git]
/
src
/
msgfile.c
diff --git
a/src/msgfile.c
b/src/msgfile.c
index
051f5b7
..
68f0581
100644
(file)
--- a/
src/msgfile.c
+++ b/
src/msgfile.c
@@
-70,6
+70,10
@@
static void handle_line(struct msg_entries *entries, char *line)
char *items[3];
int last_item = 0;
+ /* Skip comments from the file */
+ if (line[0] == '#')
+ return;
+
for (i = 0; i < len; ++i) {
if (line[i] == '\n' || line[i] == '\r')
line[i] = '\0';