Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4730f0d7 authored by Ken Chen's avatar Ken Chen
Browse files

Fix -Wnullable-to-nonnull-conversion errors

Aosp/2566619 added Nonnull annotations in strcasecmp, which causes build
break in DNS resolver module and tests.

This commit:
1. Checks if a nullable variable is null before passing it to the
   strcasecmp.
2. Adds a hacky way to avoid -Wnullable-to-nonnull-conversion errors.

Bug: 278513807
Test: presubmit
Change-Id: I146f5b91114dd7c934c9e3fb12477e4563005c5f
parent 2c10321e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment