Make valgrind happier
parent
fc9b7241ed
commit
dd4ce4adf7
|
@ -581,7 +581,7 @@ moo_command_context_set_string (MooCommandContext *ctx,
|
|||
GValue gval;
|
||||
gval.g_type = 0;
|
||||
g_value_init (&gval, G_TYPE_STRING);
|
||||
g_value_set_string (&gval, value);
|
||||
g_value_set_static_string (&gval, value);
|
||||
moo_command_context_set (ctx, name, &gval);
|
||||
g_value_unset (&gval);
|
||||
}
|
||||
|
|
|
@ -188,7 +188,7 @@ moo_output_filter_output_line (MooOutputFilter *filter,
|
|||
{
|
||||
gboolean result = FALSE;
|
||||
|
||||
if (line[strlen(line) - 1] == '\n')
|
||||
if (line[0] && line[1] && line[strlen(line) - 1] == '\n')
|
||||
g_warning ("%s: oops", G_STRLOC);
|
||||
|
||||
g_signal_emit (filter, signals[sig], 0, line, &result);
|
||||
|
|
|
@ -288,6 +288,8 @@ get_word_at_iter (GtkTextBuffer *buffer,
|
|||
while (p >= line && is_word (p))
|
||||
{
|
||||
word_start = p;
|
||||
if (p == line)
|
||||
break;
|
||||
p = g_utf8_prev_char (p);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue