diff options
author | Petr Menšík <pemensik@redhat.com> | 2021-09-11 21:49:28 +0100 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2021-09-11 21:49:28 +0100 |
commit | 94a17fd97fed0e44af466fca3fd261f46e29f72b (patch) | |
tree | 1c8f9ce67688afeed6c5e0d18c6c83d9fdb73097 | |
parent | 5b5ec554456112844ea96d6243eda9896e0b8962 (diff) | |
download | dnsmasq-94a17fd97fed0e44af466fca3fd261f46e29f72b.tar.gz |
Address coverity issues detected in util.c
-rw-r--r-- | src/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -550,7 +550,7 @@ void prettyprint_time(char *buf, unsigned int t) if ((x = (t/60)%60)) p += sprintf(&buf[p], "%um", x); if ((x = t%60)) - p += sprintf(&buf[p], "%us", x); + sprintf(&buf[p], "%us", x); } } @@ -596,7 +596,7 @@ int parse_hex(char *in, unsigned char *out, int maxlen, int j, bytes = (1 + (r - in))/2; for (j = 0; j < bytes; j++) { - char sav = sav; + char sav; if (j < bytes - 1) { sav = in[(j+1)*2]; |