Commit 4ded23a
fix: add missing secure_getenv initialization code
Add missing declarations and initialization functions for real_secure_getenv:
- Add real_secure_getenv function pointer declaration
- Add secure_getenv_init_once pthread_once control
- Add init_real_secure_getenv_once() initialization function
- Add init_real_secure_getenv() wrapper function
This fixes the compilation error in the Docker build where secure_getenv
was being called before its function pointer was initialized.
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>1 parent 56f6c7c commit 4ded23a
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
66 | 84 | | |
67 | 85 | | |
68 | 86 | | |
| |||
0 commit comments