Fix http://bugs.busybox.net/view.php?id=826 in which "(echo; echo) | sed x" crashes because the empty state of the hold space is NULL but the empty state of the pattern space is "".
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -1054,7 +1054,7 @@ restart: | |
| case 'x': /* Exchange hold and pattern space */ | |
| { | |
| char *tmp = pattern_space; | |
| - | pattern_space = bbg.hold_space; |
| + | pattern_space = bbg.hold_space ? : xzalloc(1); |
| no_newline=0; | |
| bbg.hold_space = tmp; | |
| break; | |