3.0.6-rko blank avail fix
Manage your shell environment variables and aliases
Brought to you by:
leomania,
xdelaruelle
From: R.K. O. Ph.D. <rk...@ow...> - 2000-02-24 18:20:02
|
As a couple of people have noticed on Sun systems the "module avail" produced no output. I've discovered the problem, and I'm surprised that the code worked just fine on Linux & AIX, which is probably an artifact of how the stack is laid out. Anyways, just make the following change as directed by this uniform context sensitive patch to utility.c. A new version of modules will be uploaded next week sometime with some other changes. Thanks for all those that raised the alert. R.K. +-----------------------+----------------------------------+ | R.K.Owen,PhD | rk...@ow... | | KooZ Software | | | NERSC/LBNL | rk...@ne... (510)486-7556 | +-----------------------+----------------------------------+ Index: utility.c =================================================================== RCS file: /usr/src/cvsroot/modules-3.0rko/utility.c,v retrieving revision 1.8 diff -u -r1.8 utility.c --- utility.c 2000/01/22 02:54:51 1.8 +++ utility.c 2000/02/24 16:00:04 @@ -2657,6 +2657,6 @@ if (var == (char *)NULL) return result; - xdup(getenv(var)); + return xdup(getenv(var)); } /** End of 'xgetenv' **/ |