From: U. Artie Eoff Date: Wed, 15 Jan 2014 19:40:37 +0000 (-0800) Subject: terminal: use xstrdup instead to handle OOM X-Git-Tag: upstream/0.1.8~489 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09827e2643442837027c22046c787a78b77722b6;p=profile%2Fivi%2Fweston-ivi-shell.git terminal: use xstrdup instead to handle OOM Signed-off-by: U. Artie Eoff --- diff --git a/clients/terminal.c b/clients/terminal.c index 09bc321..f3646fe 100644 --- a/clients/terminal.c +++ b/clients/terminal.c @@ -2830,7 +2830,7 @@ terminal_create(struct display *display) terminal->margin_bottom = -1; terminal->window = window_create(display); terminal->widget = window_frame_create(terminal->window, terminal); - terminal->title = strdup("Wayland Terminal"); + terminal->title = xstrdup("Wayland Terminal"); window_set_title(terminal->window, terminal->title); widget_set_transparent(terminal->widget, 0);