summaryrefslogtreecommitdiff
path: root/toys/pending/ps.c
diff options
context:
space:
mode:
authorHyejin Kim <hyejin0906.kim@samsung.com>2015-08-12 11:22:10 +0900
committerHyejin Kim <hyejin0906.kim@samsung.com>2015-08-12 11:22:10 +0900
commitc55b214458bed6f6c6dc57e3fccfc8dc8558e7ee (patch)
tree393225b618c69acab92208a350c401c408fcc252 /toys/pending/ps.c
parentc353de2e55d0f64f4b11dbc242f8319674650c54 (diff)
parent05499787ca89fa4b017c2441e89020799f02e4c1 (diff)
downloadtoybox-c55b214458bed6f6c6dc57e3fccfc8dc8558e7ee.tar.gz
toybox-c55b214458bed6f6c6dc57e3fccfc8dc8558e7ee.tar.bz2
toybox-c55b214458bed6f6c6dc57e3fccfc8dc8558e7ee.zip
Merge remote-tracking branch 'toybox/master' into upstreamupstream
Diffstat (limited to 'toys/pending/ps.c')
-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 cb0f32c..29111d5 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);
}
}