aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pj_pr_list.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pj_pr_list.c b/src/pj_pr_list.c
index f7a62344..0be154b9 100644
--- a/src/pj_pr_list.c
+++ b/src/pj_pr_list.c
@@ -68,6 +68,11 @@ char *pj_get_def( PJ *P, int options )
for (t = P->params; t; t = t->next)
{
+ /* skip unused parameters ... mostly appended defaults and stuff */
+ if (!t->used)
+ continue;
+
+ /* grow the resulting string if needed */
l = strlen(t->param) + 1;
if( strlen(definition) + l + 5 > def_max )
{
@@ -80,6 +85,7 @@ char *pj_get_def( PJ *P, int options )
definition = def2;
}
+ /* append this parameter */
strcat( definition, " +" );
strcat( definition, t->param );
}