From 764501482e5e0bafb0cee7d9dd16a69bce645d9c Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 2 Apr 2010 19:20:53 -0700 Subject: Fix some cases where g_try_new should be used --- gatchat/gatserver.c | 1 - 1 file changed, 1 deletion(-) (limited to 'gatchat/gatserver.c') diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c index 839ebe4d..1e445b2a 100644 --- a/gatchat/gatserver.c +++ b/gatchat/gatserver.c @@ -813,7 +813,6 @@ static char *extract_line(GAtServer *p) line_length -= 3; line = g_try_new(char, line_length + 1); - if (!line) { ring_buffer_drain(p->read_buf, p->read_so_far); return NULL; -- cgit v1.2.3