Skip to content
Snippets Groups Projects
Commit 242baec0 authored by Willi Ballenthin's avatar Willi Ballenthin
Browse files

Fix Clang compiler warning for function in which control may reach the end of a non-void function.

GetSeq() now returns 0xFFFF if the metadata structure is null.  According to the Linux NTFS source, 0xFFFF is not used as a sequence number, and therefore may be used to signal an error here (kernel 3.6.6, /fs/ntfs/layout.h:177).
parent a99e6691
No related branches found
No related tags found
No related merge requests found
......@@ -2546,12 +2546,12 @@ class TskFsMeta {
/**
* get sequence number for file (NTFS only, is incremented when entry is reallocated)
* @return sequence number for file
* @return sequence number for file, or 0xFFFF on error.
*/
uint32_t getSeq() const {
if (m_fsMeta != NULL)
return m_fsMeta->seq;
//zli: should we throw err msg
return 0xFFFF;
};
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment