summaryrefslogtreecommitdiff
path: root/source4/pidl/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-08 17:02:53 -0600
committerStefan Metzmacher <metze@samba.org>2008-01-08 11:06:01 -0600
commit0f32132b884fa56fde806ba33d082456b53e0df9 (patch)
treed19476d561d3c8115bcdc02231d89d0de5faadd0 /source4/pidl/lib
parentcef40813fac9363b544b22b2fa277af37a800cdf (diff)
downloadsamba-0f32132b884fa56fde806ba33d082456b53e0df9.tar.gz
samba-0f32132b884fa56fde806ba33d082456b53e0df9.tar.bz2
samba-0f32132b884fa56fde806ba33d082456b53e0df9.zip
r26695: Cosmetic fix for pidl generated samba3 client code.
Guenther (This used to be commit c52d9e6e60e0765e4f793d64e94571b6f6c3f9c7)
Diffstat (limited to 'source4/pidl/lib')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm b/source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
index e174f77542..d6b6296bd8 100644
--- a/source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
+++ b/source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
@@ -23,7 +23,7 @@ $VERSION = '0.01';
sub indent($) { my ($self) = @_; $self->{tabs}.="\t"; }
sub deindent($) { my ($self) = @_; $self->{tabs} = substr($self->{tabs}, 1); }
-sub pidl($$) { my ($self,$txt) = @_; $self->{res} .= "$self->{tabs}$txt\n"; }
+sub pidl($$) { my ($self,$txt) = @_; $self->{res} .= $txt ? "$self->{tabs}$txt\n" : "\n"; }
sub pidl_hdr($$) { my ($self, $txt) = @_; $self->{res_hdr} .= "$txt\n"; }
sub fn_declare($$) { my ($self,$n) = @_; $self->pidl($n); $self->pidl_hdr("$n;"); }