Useless Assignment at ascend-scanner.c:2015 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
input (/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/ascend-scanner.c)![]() | ||||||
![]() | ||||||
1999 | static int input (void) | |||||
2000 | #endif | |||||
2001 | ||||||
2002 | { | |||||
2003 | int c; | |||||
2004 | ||||||
2005 | *(yy_c_buf_p) = (yy_hold_char); | |||||
2006 | ||||||
2007 | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) | |||||
2008 | { | |||||
2009 | /* yy_c_buf_p now points to the character we want to return. | |||||
2010 | * If this occurs *before* the EOB characters, then it's a | |||||
2011 | * valid NUL; if not, then we've hit the end of the buffer. | |||||
2012 | */ | |||||
2013 | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) | |||||
2014 | /* This was really a NUL. */ | |||||
2015 | *(yy_c_buf_p) = '\0';
| |||||
2016 | ||||||
2017 | else | |||||
2018 | { /* need more input */ | |||||
2019 | int offset = (yy_c_buf_p) - (yytext_ptr); | |||||
2020 | ++(yy_c_buf_p); | |||||
2021 | ||||||
2022 | switch ( yy_get_next_buffer( ) ) | |||||
2023 | { | |||||
2024 | case EOB_ACT_LAST_MATCH: | |||||
2025 | /* This happens because yy_g_n_b() | |||||
2026 | * sees that we've accumulated a | |||||
2027 | * token and flags that we need to | |||||
2028 | * try matching the token before | |||||
2029 | * proceeding. But for input(), | |||||
2030 | * there's no matching to consider. | |||||
2031 | * So convert the EOB_ACT_LAST_MATCH | |||||
2032 | * to EOB_ACT_END_OF_FILE. | |||||
2033 | */ | |||||
2034 | ||||||
2035 | /* Reset buffer status. */ | |||||
2036 | ascendrestart(ascendin ); | |||||
2037 | ||||||
2038 | /*FALLTHROUGH*/ | |||||
2039 | ||||||
2040 | case EOB_ACT_END_OF_FILE: | |||||
2041 | { | |||||
2042 | if ( ascendwrap( ) ) | |||||
2043 | return EOF; | |||||
2044 | ||||||
2045 | if ( ! (yy_did_buffer_switch_on_eof) ) | |||||
2046 | YY_NEW_FILE; | |||||
2047 | #ifdef __cplusplus | |||||
2048 | return (); | |||||
2049 | #else | |||||
2050 | return input(); | |||||
2051 | #endif | |||||
2052 | } | |||||
2053 | ||||||
2054 | case EOB_ACT_CONTINUE_SCAN: | |||||
2055 | (yy_c_buf_p) = (yytext_ptr) + offset; | |||||
2056 | break; | |||||
2057 | } | |||||
2058 | } | |||||
2059 | } | |||||
2060 | ||||||
2061 | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ | |||||
2062 | *(yy_c_buf_p) = '\0'; /* preserve ascendtext */ | |||||
2063 | (yy_hold_char) = *++(yy_c_buf_p); | |||||
2064 | ||||||
2065 | return c; | |||||
2066 | } | |||||
![]() |
Change Warning 960.30354 : Useless Assignment
Similar Warnings
960.30420 | 960.30421 | 960.30431 | 960.30432 |
960.30433 | 960.30434 | 960.30435 | 960.30436 |
960.30437 | 960.30439 |