From 2699cad55fbe657a17cb25d5e5da2f010816fc45 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 20 Jul 2015 22:20:35 -0500 Subject: Fix llvm build break. --- toys/pending/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3