Merge pull request #7801 from keszybz/docs-and-coverity
Docs and coverity
This commit is contained in:
commit
3282774050
|
@ -1114,7 +1114,7 @@
|
|||
<example>
|
||||
<title>Spawn a shell in a container of a minimal Debian unstable distribution</title>
|
||||
|
||||
<programlisting># debootstrap --arch=amd64 unstable ~/debian-tree/
|
||||
<programlisting># debootstrap unstable ~/debian-tree/
|
||||
# systemd-nspawn -D ~/debian-tree/</programlisting>
|
||||
|
||||
<para>This installs a minimal Debian unstable distribution into
|
||||
|
|
|
@ -373,10 +373,8 @@ static int bus_timer_set_transient_property(
|
|||
unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "%s=%s", name, str);
|
||||
|
||||
v = new0(TimerValue, 1);
|
||||
if (!v) {
|
||||
calendar_spec_free(c);
|
||||
if (!v)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
v->base = TIMER_CALENDAR;
|
||||
v->calendar_spec = c;
|
||||
|
|
|
@ -2182,7 +2182,7 @@ static int initialize_security(
|
|||
|
||||
dual_timestamp_get(security_start_timestamp);
|
||||
|
||||
r = mac_selinux_setup(loaded_policy) < 0;
|
||||
r = mac_selinux_setup(loaded_policy);
|
||||
if (r < 0) {
|
||||
*ret_error_message = "Failed to load SELinux policy";
|
||||
return r;
|
||||
|
|
|
@ -120,7 +120,7 @@ static void help(void) {
|
|||
}
|
||||
|
||||
static int add_timer_property(const char *name, const char *val) {
|
||||
_cleanup_free_ char *p = NULL;
|
||||
char *p;
|
||||
|
||||
assert(name);
|
||||
assert(val);
|
||||
|
@ -132,8 +132,6 @@ static int add_timer_property(const char *name, const char *val) {
|
|||
if (strv_consume(&arg_timer_property, p) < 0)
|
||||
return log_oom();
|
||||
|
||||
p = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -62,6 +62,7 @@ int main(void) {
|
|||
info(usec_t);
|
||||
info(__time_t);
|
||||
info(pid_t);
|
||||
info(uid_t);
|
||||
info(gid_t);
|
||||
|
||||
info(enum Enum);
|
||||
|
|
Loading…
Reference in a new issue