mirror of
https://github.com/vale981/yabar
synced 2025-03-05 17:41:40 -05:00
Fixed segfault when omitting option 1 for internal date block
This commit is contained in:
parent
c7881b2a34
commit
31b37789ab
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,9 @@ void ya_int_date(ya_block_t * blk) {
|
||||||
char *startstr = blk->buf;
|
char *startstr = blk->buf;
|
||||||
size_t prflen=0,suflen=0;
|
size_t prflen=0,suflen=0;
|
||||||
ya_setup_prefix_suffix(blk, &prflen, &suflen, &startstr);
|
ya_setup_prefix_suffix(blk, &prflen, &suflen, &startstr);
|
||||||
|
if(blk->internal->option[0]==NULL) {
|
||||||
|
blk->internal->option[0] = "%c";
|
||||||
|
}
|
||||||
while(1) {
|
while(1) {
|
||||||
time(&rawtime);
|
time(&rawtime);
|
||||||
ya_tm = localtime(&rawtime);
|
ya_tm = localtime(&rawtime);
|
||||||
|
|
Loading…
Add table
Reference in a new issue