diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-04-02 19:20:53 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-04-02 19:20:53 -0700 |
commit | 764501482e5e0bafb0cee7d9dd16a69bce645d9c (patch) | |
tree | 1e1d1b3de44e44329ea4baefc194e65e1dd6bb67 /gatchat/gatserver.c | |
parent | 4733ddaffaaf81cc7ccd5c099c0afd0a99512d1e (diff) | |
download | ofono-764501482e5e0bafb0cee7d9dd16a69bce645d9c.tar.bz2 |
Fix some cases where g_try_new should be used
Diffstat (limited to 'gatchat/gatserver.c')
-rw-r--r-- | gatchat/gatserver.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |