diff options
| author | Dirk Mueller <dmueller@suse.com> | 2026-02-16 11:21:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-16 11:21:21 +0100 |
| commit | 423d0c52674bfa4ec49e4ae8bce645131f657f74 (patch) | |
| tree | a27276c89d37e3753b5ead6abe56132f2801d444 /lib/perfdata.c | |
| parent | 0f0865c910096c95594ac09929708e84934e46df (diff) | |
| download | monitoring-plugins-423d0c52674bfa4ec49e4ae8bce645131f657f74.tar.gz | |
Fix a few typos (#2231)
Diffstat (limited to 'lib/perfdata.c')
| -rw-r--r-- | lib/perfdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/perfdata.c b/lib/perfdata.c index 2930a8bc..b447b8ea 100644 --- a/lib/perfdata.c +++ b/lib/perfdata.c | |||
| @@ -37,7 +37,7 @@ char *pd_to_string(mp_perfdata pd) { | |||
| 37 | if (strchr(pd.label, '\'') == NULL) { | 37 | if (strchr(pd.label, '\'') == NULL) { |
| 38 | asprintf(&result, "'%s'=", pd.label); | 38 | asprintf(&result, "'%s'=", pd.label); |
| 39 | } else { | 39 | } else { |
| 40 | // we have a illegal single quote in the string | 40 | // we have an illegal single quote in the string |
| 41 | // replace it silently instead of complaining | 41 | // replace it silently instead of complaining |
| 42 | for (char *ptr = pd.label; *ptr == '\0'; ptr++) { | 42 | for (char *ptr = pd.label; *ptr == '\0'; ptr++) { |
| 43 | if (*ptr == '\'') { | 43 | if (*ptr == '\'') { |
