diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-21 21:03:51 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-21 21:03:51 +0200 |
commit | f56fb5eb1120a92bdfb6d0ce64b3430b42a2efa0 (patch) | |
tree | 6e013fd342ece68ad902b849155625a160582967 /libbb | |
parent | df70a43af281f7e653b1c95ff17201669fdcfca3 (diff) | |
download | busybox-w32-f56fb5eb1120a92bdfb6d0ce64b3430b42a2efa0.tar.gz busybox-w32-f56fb5eb1120a92bdfb6d0ce64b3430b42a2efa0.tar.bz2 busybox-w32-f56fb5eb1120a92bdfb6d0ce64b3430b42a2efa0.zip |
libbb: make "COMMON_BUFSIZE = 1024 bytes, the buffer will be malloced" work
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/common_bufsiz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/common_bufsiz.c b/libbb/common_bufsiz.c index c16c361c9..26faafcbb 100644 --- a/libbb/common_bufsiz.c +++ b/libbb/common_bufsiz.c | |||
@@ -55,14 +55,14 @@ char bb_common_bufsiz1[COMMON_BUFSIZE] ALIGNED(sizeof(long long)); | |||
55 | 55 | ||
56 | # ifndef setup_common_bufsiz | 56 | # ifndef setup_common_bufsiz |
57 | /* | 57 | /* |
58 | * It is not a "((void)0)" macro. It means we have to provide this function. | 58 | * It is not defined as a dummy macro. |
59 | * It means we have to provide this function. | ||
59 | */ | 60 | */ |
60 | char* bb_common_bufsiz1; | 61 | char* bb_common_bufsiz1; |
61 | char* setup_common_bufsiz(void) | 62 | void setup_common_bufsiz(void) |
62 | { | 63 | { |
63 | if (!bb_common_bufsiz1) | 64 | if (!bb_common_bufsiz1) |
64 | bb_common_bufsiz1 = xzalloc(COMMON_BUFSIZE); | 65 | bb_common_bufsiz1 = xzalloc(COMMON_BUFSIZE); |
65 | return bb_common_bufsiz1; | ||
66 | } | 66 | } |
67 | # else | 67 | # else |
68 | # ifndef bb_common_bufsiz1 | 68 | # ifndef bb_common_bufsiz1 |