diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-04-25 21:02:43 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-04-25 21:02:43 +0100 |
commit | 7c4a2253e89dd26018de489301e46d8425893a78 (patch) | |
tree | 50a72e4f59f1d27092b9e1c29fb0d0a1228cfe62 /status.c | |
parent | f2c0605d6d7051898318703142af4ceb7e3f845f (diff) | |
parent | 2d65bbd94129c4542394a83151cb1a131c3c7871 (diff) | |
download | rtmux-7c4a2253e89dd26018de489301e46d8425893a78.tar.gz rtmux-7c4a2253e89dd26018de489301e46d8425893a78.tar.bz2 rtmux-7c4a2253e89dd26018de489301e46d8425893a78.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1293,7 +1293,6 @@ status_prompt_complete_list(u_int *size, const char *s) size_t slen = strlen(s), valuelen; struct options_entry *o; struct options_array_item *a; - union options_value *ov; const char *layouts[] = { "even-horizontal", "even-vertical", "main-horizontal", "main-vertical", "tiled", NULL @@ -1322,11 +1321,7 @@ status_prompt_complete_list(u_int *size, const char *s) if (o != NULL) { a = options_array_first(o); while (a != NULL) { - ov = options_array_item_value(a); - if (ov == NULL) - goto next; - - value = ov->string; + value = options_array_item_value(a)->string; if ((cp = strchr(value, '=')) == NULL) goto next; valuelen = cp - value; |