summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-16 11:13:21 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-16 11:13:21 (EST)
commitfcfa0430e97efbc07ce0fc9a56304ddf3f4ba0c0 (patch)
treea5f2e69da4b466565c04c8c5bd85abc7c61514e0
parent3416232fe0c6b693dd788e3231c4f3c138114855 (diff)
main(): Run init_vardata() after srand()
-rw-r--r--src/main.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.sh b/src/main.sh
index fbdffef..dae02d0 100644
--- a/src/main.sh
+++ b/src/main.sh
@@ -42,7 +42,6 @@ main()
local cmd=
load_locale
- init_vardata
if ! get_options "${@}"; then
cmd_help_main >&2
@@ -63,6 +62,7 @@ main()
fi
srand $(expr ${$} + $(date '+%s'))
+ init_vardata
case "${cmd}" in
'help'|'version') ;;