Changeset 10909


Ignore:
Timestamp:
11/13/08 20:44:48 (5 years ago)
Author:
BrainSlayer
Message:

patches

Location:
src/router/busybox/libbb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/router/busybox/libbb/getopt32.c

    r10705 r10909  
    515515                } 
    516516        } 
     517 
     518        /* In case getopt32 was already called: 
     519         * reset the libc getopt() function, which keeps internal state. 
     520         * run_nofork_applet_prime() does this, but we might end up here 
     521         * also via gunzip_main() -> gzip_main(). Play safe. 
     522         */ 
     523#ifdef __GLIBC__ 
     524        optind = 0; 
     525#else /* BSD style */ 
     526        optind = 1; 
     527        /* optreset = 1; */ 
     528#endif 
     529        /* optarg = NULL; opterr = 0; optopt = 0; - do we need this?? */ 
    517530 
    518531        pargv = NULL; 
  • src/router/busybox/libbb/lineedit.c

    r10877 r10909  
    14161416                load_history(state->hist_file); 
    14171417#endif 
     1418#if MAX_HISTORY > 0 
    14181419        if (state->flags & DO_HISTORY) 
    14191420                state->cur_history = state->cnt_history; 
     1421#endif 
    14201422 
    14211423        /* prepare before init handlers */ 
Note: See TracChangeset for help on using the changeset viewer.