mirror of
https://github.com/systemd/systemd.git
synced 2025-02-03 17:47:28 +03:00
ude_rules.c: fix possible NULL pointer dereference in get_key()
This commit is contained in:
parent
069eab7c96
commit
9257ecfc19
@ -878,7 +878,7 @@ static int get_key(struct udev *udev, char **line, char **key, enum operation_ty
|
||||
char *temp;
|
||||
|
||||
linepos = *line;
|
||||
if (linepos == NULL && linepos[0] == '\0')
|
||||
if (linepos == NULL || linepos[0] == '\0')
|
||||
return -1;
|
||||
|
||||
/* skip whitespace */
|
||||
|
Loading…
x
Reference in New Issue
Block a user