1
0
Fork 0

DBG: More redundant string terminations (cleared by above memset())

This commit is contained in:
Nukem 2015-07-13 22:13:17 -04:00
parent 8e3e746f1d
commit 7d81eea81c
4 changed files with 0 additions and 8 deletions

View File

@ -148,8 +148,6 @@ void BookmarkCacheLoad(JSON Root)
if(mod && strlen(mod) < MAX_MODULE_SIZE)
strcpy_s(bookmarkInfo.mod, mod);
else
bookmarkInfo.mod[0] = '\0';
// Load address and set auto-generated flag
bookmarkInfo.addr = (uint)json_hex_value(json_object_get(value, "address"));

View File

@ -173,8 +173,6 @@ void CommentCacheLoad(JSON Root)
if(mod && strlen(mod) < MAX_MODULE_SIZE)
strcpy_s(commentInfo.mod, mod);
else
commentInfo.mod[0] = '\0';
// Address/Manual
commentInfo.addr = (uint)json_hex_value(json_object_get(value, "address"));

View File

@ -194,8 +194,6 @@ void LabelCacheLoad(JSON Root)
if(mod && strlen(mod) < MAX_MODULE_SIZE)
strcpy_s(labelInfo.mod, mod);
else
labelInfo.mod[0] = '\0';
// Address/Manual
labelInfo.addr = (uint)json_hex_value(json_object_get(value, "address"));

View File

@ -201,8 +201,6 @@ void LoopCacheLoad(JSON Root)
if(mod && strlen(mod) < MAX_MODULE_SIZE)
strcpy_s(loopInfo.mod, mod);
else
loopInfo.mod[0] = '\0';
// All other variables
loopInfo.start = (uint)json_hex_value(json_object_get(value, "start"));