chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
unit: when JobTimeoutSec= is turned off, implicitly turn off JobRunningTimeoutSec...
[elogind.git]
/
src
/
basic
/
time-util.c
diff --git
a/src/basic/time-util.c
b/src/basic/time-util.c
index 0a0f806e8154af3cdb2e3e2958d83613a6654f0f..7f32cf608fb4e174a8a8a8cc5cd460bd3c9fe5e8 100644
(file)
--- a/
src/basic/time-util.c
+++ b/
src/basic/time-util.c
@@
-1097,7
+1097,11
@@
int parse_sec(const char *t, usec_t *usec) {
#if 0 /// UNNEEDED by elogind
int parse_sec_fix_0(const char *t, usec_t *usec) {
+ assert(t);
+ assert(usec);
+
t += strspn(t, WHITESPACE);
+
if (streq(t, "0")) {
*usec = USEC_INFINITY;
return 0;