From: Miroslav Lichvar Date: Thu, 8 Jun 2023 14:04:21 +0000 (+0200) Subject: client: check for allocation errors in tab completition X-Git-Tag: 4.4-pre2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8265fe2e304dd66644531b039e5b2b8e0f86e5ca;p=thirdparty%2Fchrony.git client: check for allocation errors in tab completition --- diff --git a/client.c b/client.c index 0790daf8..97c842f0 100644 --- a/client.c +++ b/client.c @@ -1167,7 +1167,7 @@ command_name_generator(const char *text, int state) while ((name = names[tab_complete_index][list_index++])) { if (strncmp(name, text, len) == 0) { - return strdup(name); + return Strdup(name); } }