~josharenson/lightdm/withhold-invalid-x-args

« back to all changes in this revision

Viewing changes to tests/src/vnc-client.c

  • Committer: Tarmac
  • Author(s): Robert Ancell
  • Date: 2013-04-12 20:36:31 UTC
  • mfrom: (1635.1.3 lightdm-xvnc-command)
  • Revision ID: tarmac-20130412203631-rw5ddw0omlfdpzpd
Allow VNC command to be specified in lightdm.conf.

Approved by David Barth, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    if (error)
82
82
        g_warning ("Unable to receive on VNC socket: %s", error->message);
83
83
    g_clear_error (&error);
84
 
    if (n_read < 0)
 
84
    if (n_read <= 0)
85
85
        return EXIT_FAILURE;
86
86
 
87
87
    buffer[n_read] = '\0';