Closed cavaliercoder closed 7 years ago
I've made a few stylistic changes to SYSTEMD_CGROUP_DEV for your review @jangaraj.
SYSTEMD_CGROUP_DEV
malloc
returns
SET_MSG_RESULT
zbx_snprintf
strlen
\0
strncmp
if you're happy with these, please merge the PR.
It looks good to me. Thank you Ryan.
I've made a few stylistic changes to
SYSTEMD_CGROUP_DEV
for your review @jangaraj.malloc
calls to prevent dangling pointers - there were a fewreturns
that didn't free allocated pointersSET_MSG_RESULT
zbx_snprintf
strlen
\0
at end of string instead of appending\0
to a string and then callingstrncmp
if you're happy with these, please merge the PR.