(gen_steps): Always set *handle and *nsteps.
authordrepper <drepper>
Mon, 13 Jul 1998 12:12:54 +0000 (12:12 +0000)
committerdrepper <drepper>
Mon, 13 Jul 1998 12:12:54 +0000 (12:12 +0000)
iconv/gconv_db.c

index 2c66249..d5d075d 100644 (file)
@@ -239,6 +239,7 @@ gen_steps (struct derivation_step *best, const char *toset,
            }
          free (result);
          *nsteps = 0;
+         *handle = NULL;
          status = GCONV_NOCONV;
        }
       else
@@ -247,6 +248,11 @@ gen_steps (struct derivation_step *best, const char *toset,
          status = GCONV_OK;
        }
     }
+  else
+    {
+      *nsteps = 0;
+      *handle = NULL;
+    }
 
   return status;
 }