Thomas Adam
unread,Apr 5, 2020, 6:57:09 PM4/5/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tmux-...@googlegroups.com, Thomas Adam
---
cmd-new-session.c | 2 +-
cmd-run-shell.c | 2 +-
window-copy.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/cmd-new-session.c b/cmd-new-session.c
index c76b564e..a2839e7b 100644
--- a/cmd-new-session.c
+++ b/cmd-new-session.c
@@ -76,7 +76,7 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item)
const char *errstr, *template, *group, *prefix, *tmp;
char *cause, *cwd = NULL, *cp, *newname = NULL;
int detached, already_attached, is_control = 0;
- u_int sx, sy, dsx, dsy;
+ u_int sx, sy, dsx = 80, dsy = 24;
struct spawn_context sc;
enum cmd_retval retval;
struct cmd_find_state fs;
diff --git a/cmd-run-shell.c b/cmd-run-shell.c
index a57beb83..2fe3965a 100644
--- a/cmd-run-shell.c
+++ b/cmd-run-shell.c
@@ -163,7 +163,7 @@ cmd_run_shell_callback(struct job *job)
struct cmdq_item *item = cdata->item;
char *cmd = cdata->cmd, *msg = NULL, *line;
size_t size;
- int retcode, status;
+ int retcode = -1, status;
do {
if ((line = evbuffer_readline(event->input)) != NULL) {
diff --git a/window-copy.c b/window-copy.c
index 1a558915..232863d8 100644
--- a/window-copy.c
+++ b/window-copy.c
@@ -2662,7 +2662,7 @@ window_copy_search_jump(struct window_mode_entry *wme, struct grid *gd,
{
u_int i, px, sx, ssize = 1;
int found = 0, cflags = REG_EXTENDED;
- char *sbuf;
+ char *sbuf = NULL;
regex_t reg;
if (regex) {
@@ -2792,7 +2792,7 @@ window_copy_search_marks(struct window_mode_entry *wme, struct screen *ssp,
int cflags = REG_EXTENDED;
u_int px, py, b, nfound = 0, width;
u_int ssize = 1;
- char *sbuf;
+ char *sbuf = NULL;
regex_t reg;
time_t tstart, t;
--
2.26.0