]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix compilation
authorEric Bollengier <eric@baculasystems.com>
Fri, 14 Jan 2022 16:43:20 +0000 (17:43 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:57 +0000 (13:56 +0200)
bacula/src/stored/bscan.c

index 525655bceadd77aba74491330ef6087d3828d8f3..47f3627311969c9c919a618b990d748f3d5e0d0c 100644 (file)
@@ -1171,7 +1171,7 @@ static bool update_media_record(BDB *db, MEDIA_DBR *mr)
 
    /* Set last written to now, so that user has a month
     * (because of retention period set to 1month), to inspect recovered volume */
-   mr->LastWritten = (utime_t)time(NUL);
+   mr->LastWritten = (utime_t)time(NULL);
    if (!db_update_media_record(bjcr, db, mr)) {
       Pmsg1(0, _("Could not update media record. ERR=%s\n"), db_strerror(db));
       return false;;