[xiph-commits] r14565 - trunk/vorbis-tools/oggenc

sping at svn.xiph.org sping at svn.xiph.org
Mon Mar 10 06:12:48 PDT 2008


Author: sping
Date: 2008-03-10 06:12:47 -0700 (Mon, 10 Mar 2008)
New Revision: 14565

Modified:
   trunk/vorbis-tools/oggenc/oggenc.c
Log:
Variable declared after code compile error fixed

Modified: trunk/vorbis-tools/oggenc/oggenc.c
===================================================================
--- trunk/vorbis-tools/oggenc/oggenc.c	2008-03-10 13:11:40 UTC (rev 14564)
+++ trunk/vorbis-tools/oggenc/oggenc.c	2008-03-10 13:12:47 UTC (rev 14565)
@@ -262,12 +262,13 @@
             {
                 /* Create a filename from existing filename, replacing extension with .ogg or .oga */
                 char *start, *end;
+				char *extension;
 
                 start = infiles[i];
                 end = strrchr(infiles[i], '.');
                 end = end?end:(start + strlen(infiles[i])+1);
 
-                char *extension = (opt.with_skeleton) ? ".oga" : ".ogg";
+                extension = (opt.with_skeleton) ? ".oga" : ".ogg";
                 out_fn = malloc(end - start + 5);
                 strncpy(out_fn, start, end-start);
                 out_fn[end-start] = 0;



More information about the commits mailing list