mirror of
https://github.com/tmux/tmux.git
synced 2024-11-12 23:28:52 +00:00
Missing NULL check.
This commit is contained in:
parent
8873c79cbc
commit
83a9f272d8
5
input.c
5
input.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: input.c,v 1.49 2008-06-04 19:20:09 nicm Exp $ */
|
/* $Id: input.c,v 1.50 2008-06-18 19:06:51 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -143,7 +143,8 @@ input_start_string(struct input_ctx *ictx, int type)
|
|||||||
void
|
void
|
||||||
input_abort_string(struct input_ctx *ictx)
|
input_abort_string(struct input_ctx *ictx)
|
||||||
{
|
{
|
||||||
xfree(ictx->string_buf);
|
if (ictx->string_buf != NULL)
|
||||||
|
xfree(ictx->string_buf);
|
||||||
ictx->string_buf = NULL;
|
ictx->string_buf = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user