dtcm: Resolve CID 87822
[oweals/cde.git] / cde / programs / dtcm / server / callback.c
index fe8db1868f298b93f22f44b8d3d749aac4f03e5a..a530e9bdd3e69df3f41dd355acd33ca543c7fe12 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these librararies and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
 /* $XConsortium: callback.c /main/5 1996/10/03 10:40:51 drk $ */
 /*
  *  (c) Copyright 1993, 1994 Hewlett-Packard Company
@@ -517,7 +539,7 @@ _DtCmsDoUpdateEntryCallback(
        if (newid > 0)
                sprintf(nbuf, "%ld", newid);
        else
-               nbuf[0] = NULL;
+               nbuf[0] = '\0';
        udata.newid = nbuf;
        udata.scope = scope;
        udata.time = time;