terminal: Only set title if asprintf succeeded
authorBryce W. Harrington <b.harrington@samsung.com>
Tue, 14 Jan 2014 21:58:32 +0000 (21:58 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 17 Jan 2014 19:29:54 +0000 (11:29 -0800)
commit3abdafd12d67c2effa239c8e30415c24c162ec12
treecdf19a2bdacae95068a81a9a5ef56bca9a858872
parentad0704a22695649def5c1846f8326b231472e8e4
terminal: Only set title if asprintf succeeded

Handles potential out of memory situation by skipping the title update.
This fixes the following warning:

  terminal.c: In function ‘resize_handler’:
  terminal.c:851:11: warning: ignoring return value of ‘asprintf’,
  declared with attribute warn_unused_result [-Wunused-result]

Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
clients/terminal.c