We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee66aab commit 855e956Copy full SHA for 855e956
history.c
@@ -90,9 +90,7 @@ saveHistory(Hist *hist, size_t size)
90
return;
91
92
histf = rcFile(HISTORY_FILE);
93
- if (stat(histf, &st) == -1)
94
- goto fail;
95
- if (hist->mtime != (long long)st.st_mtime) {
+ if (!stat(histf, &st) && hist->mtime != (long long)st.st_mtime) {
96
fhist = newHist();
97
if (loadHistory(fhist) || mergeHistory(fhist, hist))
98
disp_err_message("Can't merge history", FALSE);
0 commit comments