Squash an uninitialized value when creating a deb.

This commit is contained in:
Joey Hess
2011-01-06 13:49:40 -04:00
parent 9b37ec8545
commit 1ca19300b4
2 changed files with 2 additions and 1 deletions

View File

@@ -747,7 +747,7 @@ sub postinst {
return $postinst unless ref $owninfo;
# If there is no postinst, let's make one up..
$postinst="#!/bin/sh\n" unless length $postinst;
$postinst="#!/bin/sh\n" unless defined $postinst && length $postinst;
return $postinst unless %$owninfo;