Remove the single line if statements.

pull/661/head
Jason Ish 11 years ago committed by Victor Julien
parent 8625c9eba8
commit 06f4fe8e0c

@ -699,19 +699,27 @@ ConfYamlFileIncludeTest(void)
* configuration. */
ConfNode *node;
node = ConfGetNode("host-mode");
if (node == NULL) goto cleanup;
if (strcmp(node->val, "auto") != 0) goto cleanup;
if (node == NULL)
goto cleanup;
if (strcmp(node->val, "auto") != 0)
goto cleanup;
node = ConfGetNode("unix-command.enabled");
if (node == NULL) goto cleanup;
if (strcmp(node->val, "no") != 0) goto cleanup;
if (node == NULL)
goto cleanup;
if (strcmp(node->val, "no") != 0)
goto cleanup;
/* Check for values that were included under a mapping. */
node = ConfGetNode("mapping.host-mode");
if (node == NULL) goto cleanup;
if (strcmp(node->val, "auto") != 0) goto cleanup;
if (node == NULL)
goto cleanup;
if (strcmp(node->val, "auto") != 0)
goto cleanup;
node = ConfGetNode("mapping.unix-command.enabled");
if (node == NULL) goto cleanup;
if (strcmp(node->val, "no") != 0) goto cleanup;
if (node == NULL)
goto cleanup;
if (strcmp(node->val, "no") != 0)
goto cleanup;
ConfDeInit();
ConfRestoreContextBackup();

Loading…
Cancel
Save