]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/getlibdirs_function_failure.mdwn
(no commit message)
[ikiwiki.git] / doc / bugs / getlibdirs_function_failure.mdwn
1 Up-to-date version today (commit 287231f7d29374264c2cd23818d5cb9d607d33e9). Now "make test" fails with the following error:
2
3         Error:  Can't use an undefined value as an ARRAY reference at /home/kat/files/repos/ikiwiki_master/blib/lib/IkiWiki.pm line 570.
4
5 Looked up line 570, it's the first line of the "getlibdirs" function.
6
7         my @libdirs = @{$config{libdirs}};
8
9 This error is triggered when $config{libdirs} is undefined; it didn't happen in the previous version because more checking was done before the value was dereferenced.
10
11 A simple patch would be to alter that line to this:
12
13         my @libdirs = $config{libdirs} ? @{$config{libdirs}} : ();
14
15 > [[Fixed|done]], sorry about that --[[smcv]]