Diff

Differences From Artifact [7148f823cb]:

To Artifact [a0dcafd0c9]:


424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443




444
445
446
447
448
449
450
424
425
426
427
428
429
430




431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450







-
-
-
-









+
+
+
+







        }

	fsuid = appfs_get_fsuid();

	if (fsuid == last_fsuid && last_homedir_obj != NULL) {
		homedir_obj = last_homedir_obj;
	} else {
		if (last_homedir_obj != NULL) {
			Tcl_DecrRefCount(last_homedir_obj);
		}

		homedir = appfs_get_homedir(appfs_get_fsuid());

		if (homedir == NULL) {
			return(TCL_ERROR);
		}

		homedir_obj = Tcl_NewStringObj(homedir, -1);

		free(homedir);

		if (last_homedir_obj != NULL) {
			Tcl_DecrRefCount(last_homedir_obj);
		}

		last_homedir_obj = homedir_obj;
		last_fsuid = fsuid;

		Tcl_IncrRefCount(last_homedir_obj);
	}