2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Add missing initprogname() calls.

This commit is contained in:
Todd C. Miller
2017-11-28 09:06:44 -07:00
parent ca2e1a455a
commit dd47a0a416
7 changed files with 20 additions and 0 deletions

View File

@@ -34,6 +34,7 @@
#define SUDO_ERROR_WRAP 0
#include "sudo_compat.h"
#include "sudo_util.h"
int hexchar(const char *s);
@@ -50,6 +51,8 @@ main(int argc, char *argv[])
struct hexchar_test *test_data;
int i, ntests, result, errors = 0;
initprogname(argc > 0 ? argv[0] : "check_hexchar");
/* Build up test data. */
ntests = 256 + 256 + 3;
test_data = calloc(sizeof(*test_data), ntests);