You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "James Peach (JIRA)" <ji...@apache.org> on 2016/09/15 23:34:20 UTC
[jira] [Resolved] (TS-4864) CID 1362769: Control flow issues
(DEADCODE) in ink_thread.h
[ https://issues.apache.org/jira/browse/TS-4864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Peach resolved TS-4864.
-----------------------------
Resolution: Fixed
> CID 1362769: Control flow issues (DEADCODE) in ink_thread.h
> -------------------------------------------------------------
>
> Key: TS-4864
> URL: https://issues.apache.org/jira/browse/TS-4864
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Reporter: Leif Hedstrom
> Assignee: Nathan Garabedian
> Labels: Coverity
> Fix For: 7.1.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Filing this just in case, but maybe Nathan's fixes around this is where to go ?
> {code}
> *** CID 1362769: Control flow issues (DEADCODE)
> /lib/ts/ink_thread.h: 160 in ink_thread_create(void *(*)(void *), void *, int, unsigned long, void *)()
> 154 pthread_attr_destroy(&attr);
> 155
> 156 /**
> 157 * Fix for INKqa10118.
> 158 * If the thread has not been created successfully return 0.
> 159 */
> CID 1362769: Control flow issues (DEADCODE)
> Execution cannot reach the expression "0UL" inside this statement: "return ret ? 0UL : t;".
> 160 return ret ? (ink_thread)0 : t;
> 161 }
> 162
> 163 static inline void
> 164 ink_thread_cancel(ink_thread who)
> 165 {
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)