mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 00:48:53 +02:00
Add a missing g_return_if_fail().
Sat Sep 9 18:50:42 2000 Owen Taylor <otaylor@redhat.com> * gstrfuncs.c (g_strescape): Add a missing g_return_if_fail().
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
Sat Sep 9 18:50:42 2000 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strescape): Add a missing g_return_if_fail().
|
||||||
|
|
||||||
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
Sat Sep 9 18:50:42 2000 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strescape): Add a missing g_return_if_fail().
|
||||||
|
|
||||||
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
Sat Sep 9 18:50:42 2000 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strescape): Add a missing g_return_if_fail().
|
||||||
|
|
||||||
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
Sat Sep 9 18:50:42 2000 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strescape): Add a missing g_return_if_fail().
|
||||||
|
|
||||||
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
Sat Sep 9 18:50:42 2000 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strescape): Add a missing g_return_if_fail().
|
||||||
|
|
||||||
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
Sat Sep 9 18:50:42 2000 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strescape): Add a missing g_return_if_fail().
|
||||||
|
|
||||||
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
Sat Sep 9 18:50:42 2000 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strescape): Add a missing g_return_if_fail().
|
||||||
|
|
||||||
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
Sat Sep 9 18:50:42 2000 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gstrfuncs.c (g_strescape): Add a missing g_return_if_fail().
|
||||||
|
|
||||||
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
Mon Aug 21 03:57:46 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
* glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
|
||||||
|
@@ -1152,11 +1152,16 @@ gchar *
|
|||||||
g_strescape (const gchar *source,
|
g_strescape (const gchar *source,
|
||||||
const gchar *exceptions)
|
const gchar *exceptions)
|
||||||
{
|
{
|
||||||
const guchar *p = (guchar *) source;
|
const guchar *p;
|
||||||
/* Each source byte needs maximally four destination chars (\777) */
|
gchar *dest;
|
||||||
gchar *dest = g_malloc (strlen (source) * 4 + 1);
|
gchar *q;
|
||||||
gchar *q = dest;
|
|
||||||
guchar excmap[256];
|
guchar excmap[256];
|
||||||
|
|
||||||
|
g_return_val_if_fail (source != NULL, NULL);
|
||||||
|
|
||||||
|
p = (guchar *) source;
|
||||||
|
/* Each source byte needs maximally four destination chars (\777) */
|
||||||
|
q = dest = g_malloc (strlen (source) * 4 + 1);
|
||||||
|
|
||||||
memset (excmap, 0, 256);
|
memset (excmap, 0, 256);
|
||||||
if (exceptions)
|
if (exceptions)
|
||||||
|
13
gstrfuncs.c
13
gstrfuncs.c
@@ -1152,11 +1152,16 @@ gchar *
|
|||||||
g_strescape (const gchar *source,
|
g_strescape (const gchar *source,
|
||||||
const gchar *exceptions)
|
const gchar *exceptions)
|
||||||
{
|
{
|
||||||
const guchar *p = (guchar *) source;
|
const guchar *p;
|
||||||
/* Each source byte needs maximally four destination chars (\777) */
|
gchar *dest;
|
||||||
gchar *dest = g_malloc (strlen (source) * 4 + 1);
|
gchar *q;
|
||||||
gchar *q = dest;
|
|
||||||
guchar excmap[256];
|
guchar excmap[256];
|
||||||
|
|
||||||
|
g_return_val_if_fail (source != NULL, NULL);
|
||||||
|
|
||||||
|
p = (guchar *) source;
|
||||||
|
/* Each source byte needs maximally four destination chars (\777) */
|
||||||
|
q = dest = g_malloc (strlen (source) * 4 + 1);
|
||||||
|
|
||||||
memset (excmap, 0, 256);
|
memset (excmap, 0, 256);
|
||||||
if (exceptions)
|
if (exceptions)
|
||||||
|
Reference in New Issue
Block a user