Skip to content

Commit

Permalink
dynamic debug: line queries failing due to uninitialized local variable
Browse files Browse the repository at this point in the history
Settings of the form, 'line x module y +p', can fail arbitrarily due to an
uninitialized local variable. With this patch results are consistent, as
expected.

Signed-off-by: Jason Baron <jbaron@akamai.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
jbaron@akamai.com authored and Greg Kroah-Hartman committed Aug 28, 2013
1 parent 574979c commit bd8c154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dynamic_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ static int ddebug_parse_query(char *words[], int nwords,
struct ddebug_query *query, const char *modname)
{
unsigned int i;
int rc;
int rc = 0;

/* check we have an even number of words */
if (nwords % 2 != 0) {
Expand Down

0 comments on commit bd8c154

Please sign in to comment.