[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-988-gba29219

Volker Lendecke vl at samba.org
Sat Feb 23 09:53:32 GMT 2008


The branch, v4-0-test has been updated
       via  ba29219ea243cc217ab3522b036a82ff8dfeedc8 (commit)
      from  a83db886e50b6ceeb71d93bf86fb5e0964b8d45f (commit)

http://gitweb.samba.org/?samba.git;a=shortlog;h=v4-0-test


- Log -----------------------------------------------------------------
commit ba29219ea243cc217ab3522b036a82ff8dfeedc8
Author: Volker Lendecke <vl at samba.org>
Date:   Sat Feb 23 10:26:52 2008 +0100

    Respect the return value of asprintf
    
    This removes tons of warnings
    
    warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
    
    for me. Lots of that kind left though :-)

-----------------------------------------------------------------------

Summary of changes:
 source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
index ef3eb3d..a959dc8 100644
--- a/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
+++ b/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
@@ -775,8 +775,7 @@ sub ParseElementPrint($$$$)
 				$self->pidl("for ($counter=0;$counter<$length;$counter++) {");
 				$self->indent;
 				$self->pidl("char *idx_$l->{LEVEL_INDEX}=NULL;");
-				$self->pidl("asprintf(&idx_$l->{LEVEL_INDEX}, \"[\%d]\", $counter);");
-				$self->pidl("if (idx_$l->{LEVEL_INDEX}) {");
+				$self->pidl("if (asprintf(&idx_$l->{LEVEL_INDEX}, \"[\%d]\", $counter) != -1) {");
 				$self->indent;
 
 				$var_name = get_array_element($var_name, $counter);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list