msg->envp[i++] = "UDEVD_EVENT=1";
msg->envp[i] = NULL;
- if (!msg->devpath) {
- info("DEVPATH missing, ignore message");
+ if (msg->devpath == NULL || msg->action == NULL) {
+ info("DEVPATH or ACTION missing, ignore message");
free(msg);
return NULL;
}