Skip to content

Commit 8e3917a

Browse files
committed
sync
1 parent fdae2e8 commit 8e3917a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/silvergun/mgr/messages.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class messages final : private manager<messages> {
124124
if (ch == '\0') break; // End loop if null terminated.
125125
if (ch == EOF) {
126126
throw engine_exception("Bad message file format!", "Messages", 2);
127+
return;
127128
}
128129
sys += ch;
129130
}
@@ -132,6 +133,7 @@ class messages final : private manager<messages> {
132133
if (ch == '\0') break; // End loop if null terminated.
133134
if (ch == EOF) {
134135
throw engine_exception("Bad message file format!", "Messages", 2);
136+
return;
135137
}
136138
to += ch;
137139
}
@@ -140,6 +142,7 @@ class messages final : private manager<messages> {
140142
if (ch == '\0') break; // End loop if null terminated.
141143
if (ch == EOF) {
142144
throw engine_exception("Bad message file format!", "Messages", 2);
145+
return;
143146
}
144147
from += ch;
145148
}
@@ -148,6 +151,7 @@ class messages final : private manager<messages> {
148151
if (ch == '\0') break; // End loop if null terminated.
149152
if (ch == EOF) {
150153
throw engine_exception("Bad message file format!", "Messages", 2);
154+
return;
151155
}
152156
cmd += ch;
153157
}
@@ -156,6 +160,7 @@ class messages final : private manager<messages> {
156160
if (ch == '\0') break; // End loop if null terminated.
157161
if (ch == EOF) {
158162
throw engine_exception("Bad message file format!", "Messages", 2);
163+
return;
159164
}
160165
args += ch;
161166
}

0 commit comments

Comments
 (0)