vlc | branch: master | Rémi Duraffort <[email protected]> | Tue Sep 14 20:06:52 2010 +0200| [73ae1440370184c80cb43a605b18eb73044dcd80] | committer: Rémi Duraffort
update: remove spurious asprintf (the string is not used). > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=73ae1440370184c80cb43a605b18eb73044dcd80 --- src/misc/update.c | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/misc/update.c b/src/misc/update.c index 70df3ac..b27d260 100644 --- a/src/misc/update.c +++ b/src/misc/update.c @@ -531,7 +531,7 @@ static void* update_DownloadReal( vlc_object_t *p_this ) long int l_size; long int l_downloaded = 0; float f_progress; - char *psz_status = NULL; + char *psz_status; char *psz_downloaded = NULL; char *psz_size = NULL; char *psz_destfile = NULL; @@ -632,13 +632,8 @@ static void* update_DownloadReal( vlc_object_t *p_this ) if( vlc_object_alive( p_udt ) && !dialog_ProgressCancelled( p_progress ) ) { - if( asprintf( &psz_status, _("%s\nDone %s (100.0%%)"), - p_update->release.psz_url, psz_size ) != -1 ) - { - dialog_ProgressDestroy( p_progress ); - p_progress = NULL; - free( psz_status ); - } + dialog_ProgressDestroy( p_progress ); + p_progress = NULL; } else { _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
