<div dir="ltr"><div>Fix ps.c build.</div><div><br></div><div>Found by clang...</div><div><br></div><div><div>external/toybox/toys/pending/ps.c:315:21: error: address of array 'field->title' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]</div><div> if (!field->title) strcpy(field->title, typos[field->which]);</div><div> ~~~~~~~~^~~~~</div></div><div><br></div><div>diff --git a/toys/pending/ps.c b/toys/pending/ps.c</div><div>index cb0f32c..29111d5 100644</div><div>--- a/toys/pending/ps.c</div><div>+++ b/toys/pending/ps.c</div><div>@@ -312,7 +312,7 @@ void ps_main(void)</div><div> if (j!=2) break;</div><div> }</div><div> if (i == ARRAY_LEN(typos)) error_exit("bad -o %.*s", end-type, type);</div><div>- if (!field->title) strcpy(field->title, typos[field->which]);</div><div>+ if (!*field->title) strcpy(field->title, typos[field->which]);</div><div> dlist_add_nomalloc((void *)&TT.fields, (void *)field);</div><div> }</div><div> }</div><div><br></div>
</div>