src/findlib/create_file.c
static int path_already_seen(JCR *jcr, char *path, int pnl)
{
   if (!jcr->cached_path) {
      jcr->cached_path = get_pool_memory(PM_FNAME);
   }
   if (jcr->cached_pnl == pnl && strcmp(path, jcr->cached_path) == 0) {
      return 1;
   }
   pm_strcpy(jcr->cached_path, path);
   jcr->cached_pnl = pnl;
   return 0;
}
/*
 * Primitive caching of path to prevent recreating a pathname
 *   each time as long as we remain in the same directory.
 */
Primitive caching of path to prevent recreating a pathname
each time as long as we remain in the same directory.
Primitive caching of path to prevent recreating a pathname each time as long as we remain in the same directory .
static int path_already_seen(JCR *jcr, char *path, int pnl)
{
   if (!jcr->cached_path) {
      jcr->cached_path = get_pool_memory(PM_FNAME);
   }
   if (jcr->cached_pnl == pnl && strcmp(path, jcr->cached_path) == 0) {
      return 1;
   }
   pm_strcpy(jcr->cached_path, path);
   jcr->cached_pnl = pnl;
   return 0;
}
static int path_already_seen ( JCR * jcr , char * path , int pnl ) { if ( ! jcr -> cached_path ) { jcr -> cached_path = get_pool_memory ( PM_FNAME ) ; } if ( jcr -> cached_pnl == pnl && strcmp ( path , jcr -> cached_path ) == 0 ) { return 1 ; } pm_strcpy ( jcr -> cached_path , path ) ; jcr -> cached_pnl = pnl ; return 0 ; }
Primitive caching of path to prevent recreating a pathname
   each time as long as we remain in the same directory.
Primitive caching of path to prevent recreating a pathname each time as long as we remain in the same directory .