]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
blob_get_name_by_id(): Treat id of dummy row as invalid.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 26 Mar 2016 22:28:27 +0000 (22:28 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 3 May 2016 23:00:34 +0000 (01:00 +0200)
If the given id equals the id of the dummy row, the function currently
returns an empty object. This is unfortunate, since blob table users
should not know about the dummy row implementation detail. This patch
makes the function return -E_DUMMY_ROW instead.

In error.h, the E_DUMMY_ROW error code was defined in the section
for mood.c because this file contains the only user of the error
code. With another user in blob.c it seems appropriate to move it to
the blob section instead.


No differences found