~ubuntu-branches/ubuntu/maverick/irssi-plugin-xmpp/maverick

« back to all changes in this revision

Viewing changes to src/fe-common/xmpp-completion.c

  • Committer: Bazaar Package Importer
  • Author(s): David Ammouial
  • Date: 2010-07-06 15:14:51 UTC
  • mfrom: (2.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100706151451-tyil9o1evi8ydutr
Tags: 0.51+cvs20100627-1
* New upstream release + CVS snapshot (Closes: #588163).
  - Prompt for a password if none was provided in the configuration
    (Closes: #580659).
  - Don't segfault upon reception of a ping without "from" field.
    (Closes: #521227).
  - Various bugfixes and improvements.
* Provide a package with debugging symbols (Closes: #580658).
* Bump Standards-Version to 3.8.4 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: xmpp-completion.c,v 1.24 2009/06/03 15:24:38 cdidier Exp $
 
2
 * $Id: xmpp-completion.c,v 1.25 2010/05/14 15:14:23 cdidier Exp $
3
3
 *
4
4
 * Copyright (C) 2007 Colin DIDIER
5
5
 *
56
56
 
57
57
        g_return_val_if_fail(IS_XMPP_SERVER(server), NULL);
58
58
        g_return_val_if_fail(nick != NULL, NULL);
59
 
        if (resource_name != NULL)
60
 
                len = strlen(resource_name);
 
59
        len = resource_name != NULL ? strlen(resource_name) : 0;
61
60
        list = NULL;
62
61
        user = rosters_find_user(server->roster, nick, NULL, NULL);
63
62
        if (user == NULL)