git.ucc.asn.au
/
tpg
/
opendispense2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Reset slot names on startup
[tpg/opendispense2.git]
/
src
/
server
/
main.c
diff --git
a/src/server/main.c
b/src/server/main.c
index
714f513
..
0692d6a
100644
(file)
--- a/
src/server/main.c
+++ b/
src/server/main.c
@@
-103,6
+103,9
@@
int RunRegex(regex_t *regex, const char *string, int nMatches, regmatch_t *match
int ret;
ret = regexec(regex, string, nMatches, matches, 0);
+ if( ret == REG_NOMATCH ) {
+ return -1;
+ }
if( ret ) {
size_t len = regerror(ret, regex, NULL, 0);
char errorStr[len];
UCC
git Repository :: git.ucc.asn.au