Bläddra i källkod

dpkg-split: Reduce variable scope in do_split()

Guillem Jover 15 år sedan
förälder
incheckning
6a790ffc46
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      dpkg-split/split.c

+ 3 - 2
dpkg-split/split.c

@@ -244,8 +244,6 @@ void
 do_split(const char *const *argv)
 {
 	const char *sourcefile, *prefix;
-	char *palloc;
-	int l;
 	size_t partsize;
 
 	sourcefile = *argv++;
@@ -255,6 +253,9 @@ do_split(const char *const *argv)
 	if (prefix && *argv)
 		badusage(_("--split takes at most a source filename and destination prefix"));
 	if (!prefix) {
+		char *palloc;
+		int l;
+
 		l = strlen(sourcefile);
 		palloc = nfmalloc(l + 1);
 		strcpy(palloc, sourcefile);