aboutsummaryrefslogtreecommitdiff
path: root/src/pj_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pj_init.c')
-rw-r--r--src/pj_init.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/pj_init.c b/src/pj_init.c
index 243174e1..7448fdb6 100644
--- a/src/pj_init.c
+++ b/src/pj_init.c
@@ -243,8 +243,9 @@ get_opt(projCtx ctx, paralist **start, PAFile fid, char *name, paralist *next,
else
{
/* skip past word */
- while( *next_char && !isspace(*next_char) )
+ while( *next_char && !isspace(*next_char) ) {
next_char++;
+ }
}
}
@@ -253,7 +254,6 @@ get_opt(projCtx ctx, paralist **start, PAFile fid, char *name, paralist *next,
errno = 0;
free(state);
-
return next;
}
@@ -280,8 +280,7 @@ get_defaults(projCtx ctx, paralist **start, paralist *next, char *name) {
/************************************************************************/
/* get_init() */
/************************************************************************/
-static paralist *
-get_init(projCtx ctx, paralist **start, paralist *next, char *name, int *found_def) {
+static paralist *get_init(projCtx ctx, paralist **start, paralist *next, char *name, int *found_def) {
char fname[MAX_PATH_FILENAME+ID_TAG_MAX+3], *opt;
PAFile fid;
paralist *init_items = NULL;
@@ -330,6 +329,10 @@ get_init(projCtx ctx, paralist **start, paralist *next, char *name, int *found_d
return next;
}
+paralist * pj_get_init(projCtx ctx, paralist **start, paralist *next, char *name, int *found_def) {
+ return get_init(ctx, start, next, name, found_def);
+}
+
/************************************************************************/
/* pj_init_plus() */
/* */
@@ -466,7 +469,7 @@ pj_init_ctx(projCtx ctx, int argc, char **argv) {
}
}
- /* in cae the parameter list only consist of a +init parameter
+ /* in case the parameter list only consist of a +init parameter
it is expanded here (will not be handled in the above loop). */
if (pj_param(ctx, start, "tinit").i && argc == 1) {
found_def = 0;