projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gio: Fix regression encoding an array of doubles
[platform/upstream/glib.git]
/
gio
/
ginetaddress.c
diff --git
a/gio/ginetaddress.c
b/gio/ginetaddress.c
index
2db01cb
..
9ff0c44
100644
(file)
--- a/
gio/ginetaddress.c
+++ b/
gio/ginetaddress.c
@@
-13,9
+13,7
@@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
*
* Authors: Christian Kellner <gicmo@gnome.org>
* Samuel Cormier-Iijima <sciyoshi@gmail.com>
*
* Authors: Christian Kellner <gicmo@gnome.org>
* Samuel Cormier-Iijima <sciyoshi@gmail.com>
@@
-45,6
+43,7
@@
struct _GInetAddressPrivate
/**
* SECTION:ginetaddress
* @short_description: An IPv4/IPv6 address
/**
* SECTION:ginetaddress
* @short_description: An IPv4/IPv6 address
+ * @include: gio/gio.h
*
* #GInetAddress represents an IPv4 or IPv6 internet address. Use
* g_resolver_lookup_by_name() or g_resolver_lookup_by_name_async() to
*
* #GInetAddress represents an IPv4 or IPv6 internet address. Use
* g_resolver_lookup_by_name() or g_resolver_lookup_by_name_async() to
@@
-394,6
+393,8
@@
g_inet_address_new_from_string (const gchar *string)
struct in6_addr in6_addr;
#endif
struct in6_addr in6_addr;
#endif
+ g_return_val_if_fail (string != NULL, NULL);
+
/* If this GInetAddress is the first networking-related object to be
* created, then we won't have called g_networking_init() yet at
* this point.
/* If this GInetAddress is the first networking-related object to be
* created, then we won't have called g_networking_init() yet at
* this point.