aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-07-20 22:20:35 -0500
committerRob Landley <rob@landley.net>2015-07-20 22:20:35 -0500
commit2699cad55fbe657a17cb25d5e5da2f010816fc45 (patch)
treee299e55bc61aca1827d6ea183133207d3eb4b2e5
parent8d6cbd494809f510c7947faa1db5a24cab130cf3 (diff)
downloadtoybox-2699cad55fbe657a17cb25d5e5da2f010816fc45.tar.gz
Fix llvm build break.0.6.0
-rw-r--r--toys/pending/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/ps.c b/toys/pending/ps.c
index cb0f32c0..29111d57 100644
--- a/toys/pending/ps.c
+++ b/toys/pending/ps.c
@@ -312,7 +312,7 @@ void ps_main(void)
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);
}
}