diff options
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r-- | libbb/appletlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index f7971daf4..17ce463ea 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -319,7 +319,7 @@ void lbb_prepare(const char *applet | |||
319 | IF_FEATURE_INDIVIDUAL(, char **argv)) | 319 | IF_FEATURE_INDIVIDUAL(, char **argv)) |
320 | { | 320 | { |
321 | #ifdef __GLIBC__ | 321 | #ifdef __GLIBC__ |
322 | (*(int **)&bb_errno) = __errno_location(); | 322 | (*(int **)not_const_pp(&bb_errno)) = __errno_location(); |
323 | barrier(); | 323 | barrier(); |
324 | #endif | 324 | #endif |
325 | applet_name = applet; | 325 | applet_name = applet; |