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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user