unnecessary assignments.
-/* $OpenBSD: cmd-display-menu.c,v 1.29 2021/08/21 10:22:38 nicm Exp $ */
+/* $OpenBSD: cmd-display-menu.c,v 1.30 2021/08/22 13:48:29 nicm Exp $ */
/*
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
if (sr != NULL)
break;
}
- if (line == lines)
- ranges = &tc->status.entries[0].ranges;
if (sr != NULL) {
format_add(ft, "popup_window_status_line_x", "%u",
-/* $OpenBSD: cmd-source-file.c,v 1.51 2021/08/21 10:22:39 nicm Exp $ */
+/* $OpenBSD: cmd-source-file.c,v 1.52 2021/08/22 13:48:29 nicm Exp $ */
/*
* Copyright (c) 2008 Tiago Cunha <me@tiagocunha.org>
free(pattern);
continue;
}
- free(expanded);
free(pattern);
for (j = 0; j < g.gl_pathc; j++)
cmd_source_file_add(cdata, g.gl_pathv[j]);
}
+ free(expanded);
cdata->after = item;
cdata->retval = retval;
-/* $OpenBSD: file.c,v 1.11 2021/06/10 07:51:43 nicm Exp $ */
+/* $OpenBSD: file.c,v 1.12 2021/08/22 13:48:29 nicm Exp $ */
/*
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
log_debug("open write file %d %s", msg->stream, path);
find.stream = msg->stream;
- if ((cf = RB_FIND(client_files, files, &find)) != NULL) {
+ if (RB_FIND(client_files, files, &find) != NULL) {
error = EBADF;
goto reply;
}
log_debug("open read file %d %s", msg->stream, path);
find.stream = msg->stream;
- if ((cf = RB_FIND(client_files, files, &find)) != NULL) {
+ if (RB_FIND(client_files, files, &find) != NULL) {
error = EBADF;
goto reply;
}
-/* $OpenBSD: server-client.c,v 1.383 2021/08/21 17:25:32 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.384 2021/08/22 13:48:29 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
static void
server_client_attached_lost(struct client *c)
{
- struct session *s = c->session;
+ struct session *s;
struct window *w;
struct client *loop;
struct client *found;