Project

General

Profile

Bug #1366

Check against passing 0 writing frequency

Added by Magnus Lundborg over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
Affected version - extra info:
Affected version:
Close

Description

In the functions to set writing frequency there should be a check that it is not 0.

Associated revisions

Revision 2ae89054 (diff)
Added by Magnus Lundborg over 6 years ago

Check that writing frequency is OK before setting it.

In the high-level API return TNG_FAILURE if the specified
writing frequency is <= 0. Also give an error message.

In the low-level API this is silently fixed by setting it
to at least 1.

Fixes #1366.

History

#1 Updated by Magnus Lundborg over 6 years ago

  • Status changed from Accepted to Closed

Fixed. The high-level API checks that it is > 0 and returns with a message otherwise. The low-level API silently sets it to 1 if <= 0.

Also available in: Atom PDF