mirror of https://github.com/dynup/kpatch
lookup: exit on error in make_modname()
Actually exit on strdup error instead of just printing a warning message in make_modname(). Found by covscan, see issue #984 for full log. Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
79728dddaf
commit
9c1aa2d492
|
@ -185,7 +185,7 @@ static char *make_modname(char *modname)
|
|||
|
||||
name = strdup(basename(modname));
|
||||
if (!name)
|
||||
perror("strdup");
|
||||
ERROR("strdup");
|
||||
|
||||
cur = name; /* use cur as tmp */
|
||||
while (*cur != '\0') {
|
||||
|
|
Loading…
Reference in New Issue