diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-01-29 15:18:58 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-02-01 17:59:28 -0600 |
commit | 263044721e0253f5920881871583a92b77516d21 (patch) | |
tree | 0737a68d72293c714fe1b1e7ec0c1b5cfc054cfd | |
parent | b6961b0d68220ed09fa5f1539755612b6df12143 (diff) | |
download | ofono-263044721e0253f5920881871583a92b77516d21.tar.bz2 |
Fix: Don't set variables to NULL/0
These were already set to 0 by g_try_new0
-rw-r--r-- | gatchat/gatserver.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c index 50b64a08..dd481944 100644 --- a/gatchat/gatserver.c +++ b/gatchat/gatserver.c @@ -389,11 +389,6 @@ GAtServer *g_at_server_new(GIOChannel *io) server->ref_count = 1; v250_settings_create(&server->v250); server->server_io = io; - server->read_so_far = 0; - server->user_disconnect = NULL; - server->user_disconnect_data = NULL; - server->debugf = NULL; - server->debug_data = NULL; server->buf = ring_buffer_new(4096); server->max_read_attempts = 3; @@ -403,8 +398,7 @@ GAtServer *g_at_server_new(GIOChannel *io) if (!g_at_util_setup_io(server->server_io, G_IO_FLAG_NONBLOCK)) goto error; - server->server_watch = g_io_add_watch_full(io, - G_PRIORITY_DEFAULT, + server->server_watch = g_io_add_watch_full(io, G_PRIORITY_DEFAULT, G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_NVAL, received_data, server, (GDestroyNotify)server_watcher_destroy_notify); |