tuncer committed e821968

Make sure zip module is loaded

Before we check for zip:foldl/3 make sure zip module is loaded.

Comments (0)

Files changed (1)


 %% this function when the time is right. escript:foldl/3 was an
 %% undocumented exported fun and is going to be removed post-R13B04.
 escript_foldl(Fun, Acc, File) ->
+    {module, zip} = code:ensure_loaded(zip),
     case erlang:function_exported(zip, foldl, 3) of
         true ->
             emulate_escript_foldl(Fun, Acc, File);