mirror of
				https://github.com/optim-enterprises-bv/nDPId.git
				synced 2025-10-31 18:27:47 +00:00 
			
		
		
		
	Fix issues detected by SonarCloud.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
		| @@ -104,7 +104,7 @@ int main(void) | ||||
|                            json_bytes - json_start, | ||||
|                            tokens, | ||||
|                            sizeof(tokens) / sizeof(tokens[0])); | ||||
|             if (r < 0 || tokens[0].type != JSMN_OBJECT) | ||||
|             if (r < 1 || tokens[0].type != JSMN_OBJECT) | ||||
|             { | ||||
|                 fprintf(stderr, "JSON parsing failed with return value %d at position %u\n", r, parser.pos); | ||||
|                 fprintf(stderr, "JSON string: '%.*s'\n", (int)(json_bytes - json_start), (char *)(buf + json_start)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Toni Uhlig
					Toni Uhlig