Skip to content

Commit

Permalink
demo: use full zero initializers (closes #2739)
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Dec 20, 2023
1 parent 481fa39 commit c19a715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/demo/animate.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ determine_totalmoves(struct ncplane* std, struct ncplane* left, struct ncplane*
static int
spin_cycle(const char* utf8, int iters){
int offsets[10]; // no cycles longer than this
mbstate_t mbs = { };
mbstate_t mbs = { 0 };
int offset = 0;
size_t s;
int o = 0;
Expand Down Expand Up @@ -268,7 +268,7 @@ make_pbars(struct ncplane* column, struct ncprogbar** left, struct ncprogbar** r
return -1;
}
ncplane_set_base(leftp, " ", 0, NCCHANNELS_INITIALIZER(0xdd, 0xdd, 0xdd, 0x1b, 0x1b, 0x1b));
ncprogbar_options popts = { };
ncprogbar_options popts = { 0 };
ncchannel_set_rgb8(&popts.brchannel, 0, 0, 0);
ncchannel_set_rgb8(&popts.blchannel, 0, 0xff, 0);
ncchannel_set_rgb8(&popts.urchannel, 0, 0, 0xff);
Expand Down

0 comments on commit c19a715

Please sign in to comment.