• unknown's avatar
    Fixed two bugs in my_getopt. · 151eab93
    unknown authored
    
    mysys/my_getopt.c:
      Fixed two bugs in my_getopt:
      
      - argc was decremented twice when type was GET_BOOL and short
        option was used. This caused all GET_BOOL -type short-options
        to malfunction.
      
      - Fixed a bug in argv handling. Any program that used argv directly
        without checking argc first, tried to use (already handled) options
        as non-option arguments, after all true non-option arguments were
        handled. At least mysqldump was affected by this bug.
    151eab93
my_getopt.c 20.9 KB