Skip to content

Commit 84a7239

Browse files
committed
koops: fix splitting of kernel modules names
Closes abrt#200
1 parent e2ade6b commit 84a7239

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

lib/koops_stacktrace.c

-16
Original file line numberDiff line numberDiff line change
@@ -479,22 +479,6 @@ sr_koops_stacktrace_parse_modules(const char **input)
479479

480480
local_input++;
481481

482-
/* If the next line does not start with space and there wasn't
483-
* any space before the newline either, then the last module was
484-
* split into two parts and we need to read the rest */
485-
if (*local_input != ' ' && ws == 0 && result_offset > 0)
486-
{
487-
char *therest;
488-
if (!sr_parse_char_cspan(&local_input, " \t\n[", &therest))
489-
{
490-
break; /* wtf? */
491-
}
492-
493-
char *tmp = sr_asprintf("%s%s", result[result_offset-1], therest);
494-
free(result[result_offset-1]);
495-
result[result_offset-1] = tmp;
496-
}
497-
498482
ws = sr_skip_char_span(&local_input, " \t");
499483
}
500484
else

0 commit comments

Comments
 (0)