diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-23 08:40:34 +0000 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-23 08:40:34 +0000 | 
| commit | 7c3cfae4b835a040e5e4af68a95f260046d7b710 (patch) | |
| tree | fbbe80f580173a5f9cb3aabdc444b3069d8f1f71 | |
| parent | 780fdf762ea90956b668d8fd3daff35973a06de7 (diff) | |
g_strdup_printf should not return NULL on OOM
| -rw-r--r-- | eglib/gmain.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/eglib/gmain.c b/eglib/gmain.c index 9a4f0097..b341d516 100644 --- a/eglib/gmain.c +++ b/eglib/gmain.c @@ -1299,7 +1299,7 @@ gchar *g_strdup_printf(const gchar *format, ...)  	length = vsnprintf(buffer, sizeof(buffer) - 1, format, args);  	va_end(args); -	return strdup(buffer); +	return g_strdup(buffer);  }  gchar *g_strdelimit(gchar *string, const gchar *delimiters, gchar new_delim)  | 
