projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
224e0a8
)
journal-gatewayd: remove duplicate call to `startswith()`
author
Antonio Alvarez Feijoo
<antonio.feijoo@suse.com>
Wed, 17 Apr 2024 09:19:01 +0000
(11:19 +0200)
committer
Mike Yuan
<me@yhndnzj.com>
Wed, 17 Apr 2024 13:34:08 +0000
(21:34 +0800)
src/journal-remote/journal-gatewayd.c
patch
|
blob
|
history
diff --git
a/src/journal-remote/journal-gatewayd.c
b/src/journal-remote/journal-gatewayd.c
index a641c9189621bfc03c3f4388916a1bd609d438a1..08ea94f6d4065a1a16a1178f3d94283787213509 100644
(file)
--- a/
src/journal-remote/journal-gatewayd.c
+++ b/
src/journal-remote/journal-gatewayd.c
@@
-447,7
+447,7
@@
static int request_parse_range(
}
range_after_eq = startswith(range, "realtime=");
- if (
startswith(range, "realtime=")
) {
+ if (
range_after_eq
) {
range_after_eq += strspn(range_after_eq, WHITESPACE);
return request_parse_range_time(m, range_after_eq);
}