diff --git a/database/DBio.c b/database/DBio.c index 3f662eed..76ab5a30 100644 --- a/database/DBio.c +++ b/database/DBio.c @@ -3174,10 +3174,12 @@ dbWriteCellFunc(cellUse, cdarg) else break; - /* If there are no common components, then restore the leading '/' */ - if ((*pathorigin == '/') && (pathstart == pathorigin + 1)) - pathstart = pathorigin; } + + /* If there are no common components, then restore the leading '/' */ + if ((*pathorigin == '/') && (pathstart == pathorigin + 1)) + pathstart = pathorigin; + if (pathend != NULL) { *pathend = '\0';