Skip to content

Fix segfault in format_skip_cond_expr - #633

Merged
flyingmutant merged 1 commit into
cmus:masterfrom
mahkoh:fix-segfault
Feb 8, 2017
Merged

flyingmutant merged 1 commit into
cmus:masterfrom
mahkoh:fix-segfault

Conversation

@mahkoh

@mahkoh mahkoh commented Feb 5, 2017

Copy link
Copy Markdown
Member

Comment thread format_print.c
@@ -379,7 +379,7 @@ static struct expr *format_parse_cond(const char* format, int size)
static uchar format_skip_cond_expr(const char *format, int *s)
{
uchar r = 0;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What the hell is this variable anyway. It's not even used anywhere. This code seems seriously broken.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was obviously used when it was introduced in fe4efbb, but was abandoned cd2e7d7.

@flyingmutant
flyingmutant merged commit 7dfa7ce into cmus:master Feb 8, 2017
@flyingmutant flyingmutant mentioned this pull request Feb 8, 2017
3 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants