journal-upload: make sure that 'r' is initialized