Fossil SCM
Forgot to remove redundant ternary operator after testing [cd4fbdee00].
Commit
52fb87ba5003934a9c7bbb2d34aa6f95fa48c57c1af2a7c57b566568d6fadac3
Parent
cd4fbdee000875d…
1 file changed
+1
-2
+1
-2
| --- src/export.c | ||
| +++ src/export.c | ||
| @@ -1184,12 +1184,11 @@ | ||
| 1184 | 1184 | zEmail = mprintf("%[email protected]", pMan->zUser); |
| 1185 | 1185 | } else { |
| 1186 | 1186 | zEmail = fossil_strdup(pMan->zUser); |
| 1187 | 1187 | } |
| 1188 | 1188 | } |
| 1189 | - fprintf(xCmd, "committer %s <%s> %s +0000\n", pMan->zUser, | |
| 1190 | - strchr(pMan->zUser, '@') == NULL ? zEmail : pMan->zUser, buf); | |
| 1189 | + fprintf(xCmd, "committer %s <%s> %s +0000\n", pMan->zUser, zEmail, buf); | |
| 1191 | 1190 | fossil_free(zEmail); |
| 1192 | 1191 | blob_init(&comment, pMan->zComment, -1); |
| 1193 | 1192 | if( blob_size(&comment)==0 ){ |
| 1194 | 1193 | blob_append(&comment, "(no comment)", -1); |
| 1195 | 1194 | } |
| 1196 | 1195 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -1184,12 +1184,11 @@ | |
| 1184 | zEmail = mprintf("%[email protected]", pMan->zUser); |
| 1185 | } else { |
| 1186 | zEmail = fossil_strdup(pMan->zUser); |
| 1187 | } |
| 1188 | } |
| 1189 | fprintf(xCmd, "committer %s <%s> %s +0000\n", pMan->zUser, |
| 1190 | strchr(pMan->zUser, '@') == NULL ? zEmail : pMan->zUser, buf); |
| 1191 | fossil_free(zEmail); |
| 1192 | blob_init(&comment, pMan->zComment, -1); |
| 1193 | if( blob_size(&comment)==0 ){ |
| 1194 | blob_append(&comment, "(no comment)", -1); |
| 1195 | } |
| 1196 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -1184,12 +1184,11 @@ | |
| 1184 | zEmail = mprintf("%[email protected]", pMan->zUser); |
| 1185 | } else { |
| 1186 | zEmail = fossil_strdup(pMan->zUser); |
| 1187 | } |
| 1188 | } |
| 1189 | fprintf(xCmd, "committer %s <%s> %s +0000\n", pMan->zUser, zEmail, buf); |
| 1190 | fossil_free(zEmail); |
| 1191 | blob_init(&comment, pMan->zComment, -1); |
| 1192 | if( blob_size(&comment)==0 ){ |
| 1193 | blob_append(&comment, "(no comment)", -1); |
| 1194 | } |
| 1195 |