Turn on warnings for libcutils, fix a bug.
This doesn't actually spot the bug I'm about to fix, but maybe one day...
Change-Id: Ib8a2016ecd8a426f38960a05d439646255ea6cd8
diff --git a/libcutils/fs_config.c b/libcutils/fs_config.c
index cb77ee6..1316339 100644
--- a/libcutils/fs_config.c
+++ b/libcutils/fs_config.c
@@ -160,8 +160,7 @@
const char *out = getenv("OUT");
if (out && *out) {
char *name = NULL;
- asprintf(&name, "%s%s", out, dir ? conf_dir : conf_file);
- if (name) {
+ if (asprintf(&name, "%s%s", out, dir ? conf_dir : conf_file) != -1) {
fd = TEMP_FAILURE_RETRY(open(name, O_RDONLY | O_BINARY));
free(name);
}