diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-10 00:06:06 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-10 00:06:06 +0100 |
commit | 21c39515903c34bc6428a544c88cf1c100786847 (patch) | |
tree | c9d0465e24cc3148c84c2fee191f2b1bfc71b841 /plugins/utils.c | |
parent | ed01d534474cc640515f1d5155349f14090aafe9 (diff) | |
parent | 5d7d620903a2fb40f8cd3140081bfb7ceaf125d5 (diff) | |
download | monitoring-plugins-21c39515903c34bc6428a544c88cf1c100786847.tar.gz |
Merge branch 'master' into check_swap_again
Diffstat (limited to 'plugins/utils.c')
-rw-r--r-- | plugins/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/utils.c b/plugins/utils.c index f11db731..6d366e3d 100644 --- a/plugins/utils.c +++ b/plugins/utils.c | |||
@@ -185,7 +185,7 @@ bool is_percentage_expression(const char str[]) { | |||
185 | return false; | 185 | return false; |
186 | } | 186 | } |
187 | 187 | ||
188 | char *foo = calloc(sizeof(char), len + 1); | 188 | char *foo = calloc(len + 1, sizeof(char)); |
189 | 189 | ||
190 | if (!foo) { | 190 | if (!foo) { |
191 | die(STATE_UNKNOWN, _("calloc failed \n")); | 191 | die(STATE_UNKNOWN, _("calloc failed \n")); |