2.23.92
[evolution.git] / e-util / e-corba-utils.c
blob0288602a7eb4183a45928972eabb7b683430a0cd
1 /*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2 of the License, or (at your option) version 3.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with the program; if not, see <http://www.gnu.org/licenses/>
16 * Authors:
17 * Ettore Perazzoli <ettore@ximian.com>
19 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
23 #ifdef HAVE_CONFIG_H
24 #include <config.h>
25 #endif
27 #include "e-corba-utils.h"
30 const CORBA_char *
31 e_safe_corba_string (const char *s)
33 if (s == NULL)
34 return (CORBA_char *) "";
36 return s;
39 CORBA_char *
40 e_safe_corba_string_dup (const char *s)
42 return CORBA_string_dup (e_safe_corba_string (s));