Skip to content

Instantly share code, notes, and snippets.

@slackorama
Created April 8, 2010 19:13
Show Gist options
  • Save slackorama/360424 to your computer and use it in GitHub Desktop.
Save slackorama/360424 to your computer and use it in GitHub Desktop.
diff --git a/src/gl-compile-conf b/src/gl-compile-conf
index c9b953b..71ef61b 100755
--- a/src/gl-compile-conf
+++ b/src/gl-compile-conf
@@ -362,6 +362,12 @@ for my $fragment_file (glob("conf/fragments/*.conf"))
parse_conf_file($fragment_file, $fragment);
}
+# these 4 lines prevent a segfault on the Data::Dumper line
+for my $key ( keys %repos) {
+ my $wtf = $repos{ $key };
+ my @dev_null_keys = sort keys %{ $wtf };
+}
+
my $compiled_fh = wrap_open( ">", $GL_CONF_COMPILED );
my $dumped_data = Data::Dumper->Dump([\%repos], [qw(*repos)]);
# the dump uses single quotes, but we convert any strings containing $creater,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment