aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal_common.c
diff options
context:
space:
mode:
authorGravatar Claes Nästén <me@pekdon.net>2007-08-22 18:00:52 +1000
committerGravatar Claes Nästén <me@pekdon.net>2007-08-22 18:00:52 +1000
commitc2c4b2417441475f45aa970f13879846bb32c7bf (patch)
tree063acc7c5a6d7ce5eb12b297069722cd51664acd /env_universal_common.c
parent74a270ea327129b489410900851a88d1e5a4084d (diff)
Fix issue in error handling, reported to and fixed by Axel Liljencrantz. Change val[0] and body[0] in env universal to val[1] and body[1] to support compilation with Sun Studio. Change default prompt to use pekdon instead of whoami as it does not exist under Solaris.
darcs-hash:20070822080052-cac88-326332f0df7d17ddca4a4496c93728a47f19bba5.gz
Diffstat (limited to 'env_universal_common.c')
-rw-r--r--env_universal_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/env_universal_common.c b/env_universal_common.c
index 4a9e3abb..988dbfbd 100644
--- a/env_universal_common.c
+++ b/env_universal_common.c
@@ -93,7 +93,7 @@
typedef struct var_uni_entry
{
int export; /**< Whether the variable should be exported */
- wchar_t val[0]; /**< The value of the variable */
+ wchar_t val[1]; /**< The value of the variable */
}
var_uni_entry_t;
@@ -113,7 +113,6 @@ void (*callback)( int type,
const wchar_t *key,
const wchar_t *val );
-
/**
Variable used by env_get_names to communicate auxiliary information
to add_key_to_hash