aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-09-21 20:40:56 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-09-21 20:40:56 +0000
commit4eff22bb36431951be1c56ca541f09585d5a8f98 (patch)
treea28d0d9142cc4215835ba0e7fdd6a799b337004c
parentdea66523b73700153b6e2b0c05146914974635d5 (diff)
downloadbusybox-w32-4eff22bb36431951be1c56ca541f09585d5a8f98.tar.gz
busybox-w32-4eff22bb36431951be1c56ca541f09585d5a8f98.tar.bz2
busybox-w32-4eff22bb36431951be1c56ca541f09585d5a8f98.zip
- silence gcc warning about a funcptr possibly being used uninitialized.
This is a perfect example on where we should NOT care if the functor is not initialized since the result will not be what the user may expect. Safe bet would be to init to NULL, but let's try normal uu for good measure. - fix commentary typo while at it. git-svn-id: svn://busybox.net/trunk/busybox@16172 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--coreutils/uudecode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c
index 2ec4306d0..b87c33dc7 100644
--- a/coreutils/uudecode.c
+++ b/coreutils/uudecode.c
@@ -36,7 +36,7 @@ static int read_stduu(FILE *src_stream, FILE *dst_stream)
36 } 36 }
37 37
38 line_ptr++; 38 line_ptr++;
39 /* Tolerate an overly long line to acomadate a possible exta '`' */ 39 /* Tolerate an overly long line to accomodate a possible exta '`' */
40 if (strlen(line_ptr) < (size_t)length) { 40 if (strlen(line_ptr) < (size_t)length) {
41 bb_error_msg_and_die("Short file"); 41 bb_error_msg_and_die("Short file");
42 } 42 }
@@ -125,7 +125,7 @@ static int read_base64(FILE *src_stream, FILE *dst_stream)
125 125
126int uudecode_main(int argc, char **argv) 126int uudecode_main(int argc, char **argv)
127{ 127{
128 int (*decode_fn_ptr) (FILE * src, FILE * dst); 128 int (*decode_fn_ptr)(FILE * src, FILE * dst) = read_stduu; /* silence gcc */
129 FILE *src_stream; 129 FILE *src_stream;
130 char *outname = NULL; 130 char *outname = NULL;
131 char *line; 131 char *line;