Skip to content

Commit

Permalink
net: dhd_common: fix comparing a pointer to a null character
Browse files Browse the repository at this point in the history
Change-Id: I07bcc7b49bfccdb2721c1c084901df865db5f6f1
  • Loading branch information
erfanoabdi authored and ananjaser1211 committed Jun 25, 2024
1 parent b38e168 commit 63ec32d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/bcmdhd_100_15/dhd_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -4120,7 +4120,7 @@ dhd_pktfilter_offload_set(dhd_pub_t * dhd, char *arg)
htod16(WL_PKT_FILTER_MFLAG_NEG);
(argv[i])++;
}
if (argv[i] == '\0') {
if (argv[i] == (char *)'\0') {
printf("Pattern not provided\n");
goto fail;
}
Expand Down

0 comments on commit 63ec32d

Please sign in to comment.