* options.c (scm_options): Bugfix: Allow empty list of options!
authorMikael Djurfeldt <djurfeldt@nada.kth.se>
Fri, 21 Aug 1998 08:15:31 +0000 (08:15 +0000)
committerMikael Djurfeldt <djurfeldt@nada.kth.se>
Fri, 21 Aug 1998 08:15:31 +0000 (08:15 +0000)
libguile/options.c

index a416adf..ad37831 100644 (file)
@@ -123,6 +123,7 @@ scm_options (new_mode, options, n, s)
      char *s;
 {
   int i, docp = (!SCM_UNBNDP (new_mode)
+                && !SCM_NULLP (new_mode)
                 && (SCM_IMP (new_mode) || SCM_NCONSP (new_mode)));
   SCM ans = SCM_EOL, ls;
   for (i = 0; i < n; ++i)