mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
libDtSearch: Coverity 86762
This commit is contained in:
parent
68986baef8
commit
85166ef293
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ int num /* Element to extract (0 = first) */
|
||||||
|
|
||||||
if (dbxpath == NULL) return (NULL);
|
if (dbxpath == NULL) return (NULL);
|
||||||
if (dbxpath[0] == '\0') return (NULL); /* NULL string? */
|
if (dbxpath[0] == '\0') return (NULL); /* NULL string? */
|
||||||
strcpy(element,dbxpath);
|
snprintf(element, sizeof(element), "%s", dbxpath);
|
||||||
|
|
||||||
/* If there is only one element, always return that */
|
/* If there is only one element, always return that */
|
||||||
if (strchr(element,';') == NULL) {
|
if (strchr(element,';') == NULL) {
|
||||||
|
|
Loading…
Reference in a new issue