26 lines
791 B
Diff
26 lines
791 B
Diff
--- ncl_ncarg-5.0.0/ni/src/lib/nfp/udunitsW.c.udunits 2006-12-10 19:07:06.000000000 -0700
|
|
+++ ncl_ncarg-5.0.0/ni/src/lib/nfp/udunitsW.c 2008-11-27 08:41:11.000000000 -0700
|
|
@@ -23,21 +23,7 @@
|
|
*/
|
|
path = getenv("UDUNITS_PATH");
|
|
if ((void *)path == (void *)NULL) {
|
|
- path = _NGGetNCARGEnv("udunits");
|
|
- if ((void *)path != (void *)NULL) {
|
|
- strcpy(udunits_file,path);
|
|
- strcat(udunits_file,_NhlPATHDELIMITER);
|
|
- strcat(udunits_file,"udunits.dat");
|
|
- utret = utInit(udunits_file);
|
|
- }
|
|
- else {
|
|
-/*
|
|
- * Use path built-in at compile time. It's not a good thing if we reach
|
|
- * this point, because the "_NGGetNCARGEnv" call above should have
|
|
- * returned a valid path.
|
|
- */
|
|
- utret = utInit("");
|
|
- }
|
|
+ path = "/etc/udunits.dat";
|
|
}
|
|
else {
|
|
/*
|