summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c9c6331)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
{
if (index >= mt->max_text)
return;
{
if (index >= mt->max_text)
return;
+ if (!mt->text || !mt->text[index])
return;
mt->cur_text = index;
return;
mt->cur_text = index;
static void multitext_update_entry(struct multitext_widget *mt,
unsigned int index, const char *text)
{
static void multitext_update_entry(struct multitext_widget *mt,
unsigned int index, const char *text)
{
+ if (!mt->text)
+ return;
+
if (mt->text[index])
free(mt->text[index]);
if (mt->text[index])
free(mt->text[index]);