From 49d8904d8018b788880a0908bd73ad0a8f57d96e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Wed, 19 Jan 2000 20:23:24 +0100 Subject: [PATCH] Fixed a few bugs. Rev: bin/feature_list:1.8 --- .gitattributes | 1 + bin/feature_list | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitattributes b/.gitattributes index 9c40b62821..255a76c515 100644 --- a/.gitattributes +++ b/.gitattributes @@ -22,6 +22,7 @@ testfont binary /Makefile foreign_ident /NT/tools/install-sh foreign_ident /bin/export.pike foreign_ident +/bin/feature_list foreign_ident /bin/httpd.pike foreign_ident /bin/make_ci.pike foreign_ident /bin/mkpeep.pike foreign_ident diff --git a/bin/feature_list b/bin/feature_list index 2cbb27e4eb..2dd7926583 100755 --- a/bin/feature_list +++ b/bin/feature_list @@ -1,5 +1,7 @@ #!/usr/local/bin/pike +// $Id: feature_list,v 1.8 2000/01/19 19:23:24 grubba Exp $ + int main(int argc, string *argv) { write("Features: "); @@ -15,10 +17,12 @@ int main(int argc, string *argv) "_Image_TIFF","_Image_TTF","MIME","Msql","Mysql","Odbc","Oracle", "Perl", "Postgres","Ssleay","WideValues","X","Yp" }), string modname) { - catch { if (sizeof(indices(master()->resolv(modname)))) - if(modname[0] == '_') - modname = replace(modname[1..], "_", ".");; - write(modname+" "); + catch { + if (sizeof(indices(master()->resolv(modname) || ({})))) { + if(modname[0] == '_') + modname = replace(modname[1..], "_", "."); + write(modname+" "); + } }; } -- GitLab