projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
efi_selftest: test protocol management
[oweals/u-boot.git]
/
lib
/
slre.c
diff --git
a/lib/slre.c
b/lib/slre.c
index 8cdd192ea3279af01b119d6062f73a553446282d..e26d344865b83f7639fb711fd4b6a2c21618f4e8 100644
(file)
--- a/
lib/slre.c
+++ b/
lib/slre.c
@@
-441,7
+441,7
@@
loop_greedy(const struct slre *r, int pc, const char *s, int len, int *ofs)
{
int saved_offset, matched_offset;
{
int saved_offset, matched_offset;
-
saved_offset =
matched_offset = *ofs;
+ matched_offset = *ofs;
while (match(r, pc + 2, s, len, ofs, NULL)) {
saved_offset = *ofs;
while (match(r, pc + 2, s, len, ofs, NULL)) {
saved_offset = *ofs;
@@
-688,7
+688,7
@@
int main(int argc, char *argv[])
fprintf(stderr, "Error compiling slre: %s\n", slre.err_str);
return 1;
}
fprintf(stderr, "Error compiling slre: %s\n", slre.err_str);
return 1;
}
-
+
slre_dump(&slre, stderr);
while (fgets(data, sizeof(data), fp) != NULL) {
slre_dump(&slre, stderr);
while (fgets(data, sizeof(data), fp) != NULL) {