commit | 2699cad55fbe657a17cb25d5e5da2f010816fc45 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Mon Jul 20 22:20:35 2015 -0500 |
committer | Rob Landley <rob@landley.net> | Mon Jul 20 22:20:35 2015 -0500 |
tree | e299e55bc61aca1827d6ea183133207d3eb4b2e5 | |
parent | 8d6cbd494809f510c7947faa1db5a24cab130cf3 [diff] |
Fix llvm build break.
diff --git a/toys/pending/ps.c b/toys/pending/ps.c index cb0f32c..29111d5 100644 --- a/toys/pending/ps.c +++ b/toys/pending/ps.c
@@ -312,7 +312,7 @@ if (j!=2) break; } if (i == ARRAY_LEN(typos)) error_exit("bad -o %.*s", end-type, type); - if (!field->title) strcpy(field->title, typos[field->which]); + if (!*field->title) strcpy(field->title, typos[field->which]); dlist_add_nomalloc((void *)&TT.fields, (void *)field); } }